Skip to content

Commit

Permalink
add --force-relay parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Geosearchef committed Oct 23, 2018
1 parent 7c38ba1 commit 79d0581
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ faf-ice-adapter usage:
--gpgnet-port arg (=0) set the port of internal GPGNet server
--lobby-port arg (=0) set the port the game lobby should use for incoming UDP packets from the PeerRelay
--log-directory arg set a log directory to write ice_adapter_0 log files
--force-relay force the usage of relay candidates only
--debug-window activate the debug window if JavaFX is available
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ public static void interpretArguments(Map<String, String> arguments) {
"--gpgnet-port arg (=0) set the port of internal GPGNet server\n" +
"--lobby-port arg (=0) set the port the game lobby should use for incoming UDP packets from the PeerRelay\n" +
"--log-directory arg set a log directory to write ice_adapter_0 log files\n" +
"--force-relay force the usage of relay candidates only\n" +
"--debug-window activate the debug window if JavaFX is available\n");
System.exit(0);
}
Expand All @@ -184,6 +185,11 @@ public static void interpretArguments(Map<String, String> arguments) {
if(arguments.containsKey("log-directory")) {
logDirectory = arguments.get("log-directory");
}
if(arguments.containsKey("force-relay")) {
DEBUG_ALLOW_HOST = false;
DEBUG_ALLOW_REFLEXIVE = false;
DEBUG_ALLOW_RELAY = true;
}

Debug.init(arguments.containsKey("debug-window"));
}
Expand Down

0 comments on commit 79d0581

Please sign in to comment.