#1969 separate picking a random port from choosing a random port at startup

This commit is contained in:
Mitchell Livingston
2009-04-03 04:29:27 +00:00
parent a621b7eedb
commit aab0c1b87c
10 changed files with 66 additions and 30 deletions

View File

@@ -353,6 +353,11 @@ tr_session * fHandle;
[self setPort: fPortField];
}
- (void) setRandomPortOnStart: (id) sender
{
tr_sessionSetPeerPortRandomOnStart(fHandle, [sender state] == NSOnState);
}
- (void) setNat: (id) sender
{
tr_sessionSetPortForwardingEnabled(fHandle, [fDefaults boolForKey: @"NatTraversal"]);