瀏覽代碼

Enable bindToDevice code for iOS

Adam Pritchard 9 年之前
父節點
當前提交
26b5489acd
共有 1 個文件被更改,包括 2 次插入8 次删除
  1. 2 8
      MobileLibrary/iOS/PsiphonTunnel/PsiphonTunnel/PsiphonTunnel.m

+ 2 - 8
MobileLibrary/iOS/PsiphonTunnel/PsiphonTunnel/PsiphonTunnel.m

@@ -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;
 }