|
|
@@ -548,15 +548,10 @@
|
|
|
#pragma mark - GoPsiPsiphonProvider protocol implementation (private)
|
|
|
|
|
|
- (BOOL)bindToDevice:(long)fileDescriptor error:(NSError **)error {
|
|
|
- /*
|
|
|
- This code is not currently used, so we won't leave it in untested. However,
|
|
|
- this implementation info will probably be useful later.
|
|
|
-
|
|
|
- // DEBUG
|
|
|
- [self logMessage:[NSString stringWithFormat: @"***** DEBUG: bindToDevice called"]];
|
|
|
-
|
|
|
// This function is only called in TunnelWholeDevice mode
|
|
|
|
|
|
+ // TODO: Does this function ever get called?
|
|
|
+
|
|
|
// TODO: Determine if this is robust.
|
|
|
unsigned int interfaceIndex = if_nametoindex("ap1");
|
|
|
|
|
|
@@ -565,7 +560,6 @@
|
|
|
[self logMessage:[NSString stringWithFormat: @"bindToDevice: setsockopt failed; errno: %d", errno]];
|
|
|
return FALSE;
|
|
|
}
|
|
|
- */
|
|
|
|
|
|
return TRUE;
|
|
|
}
|