diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-25 18:02:16 +0200 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2019-05-26 00:12:47 +0530 |
commit | 0340641c4c8d7be93e8f85be9827dec68711ab9a (patch) | |
tree | 9ec13f987bd55da78cc983d6e62fe9bb2f8c2651 /wireguard-go-bridge | |
parent | NetworkExtension: use excludedRoutes instead of binding on iOS (diff) | |
download | wireguard-apple-0340641c4c8d7be93e8f85be9827dec68711ab9a.tar.xz wireguard-apple-0340641c4c8d7be93e8f85be9827dec68711ab9a.zip |
NetworkExtension: apparently the extension process is scoped properly anyway
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'wireguard-go-bridge')
-rw-r--r-- | wireguard-go-bridge/api-ios.go | 17 | ||||
-rw-r--r-- | wireguard-go-bridge/wireguard.h | 1 |
2 files changed, 0 insertions, 18 deletions
diff --git a/wireguard-go-bridge/api-ios.go b/wireguard-go-bridge/api-ios.go index 1424977..dfe4fbd 100644 --- a/wireguard-go-bridge/api-ios.go +++ b/wireguard-go-bridge/api-ios.go @@ -166,23 +166,6 @@ func wgGetConfig(tunnelHandle int32) *C.char { return C.CString(settings.String()) } -//export wgBindInterfaceScope -func wgBindInterfaceScope(tunnelHandle int32, ifscope int32) { - device, ok := tunnelHandles[tunnelHandle] - if !ok { - return - } - device.Info.Printf("Binding sockets to interface %d\n", ifscope) - err := device.BindSocketToInterface4(uint32(ifscope)) - if err != nil { - device.Error.Printf("Unable to bind v4 socket to interface: %v", err) - } - err = device.BindSocketToInterface6(uint32(ifscope)) - if err != nil { - device.Error.Printf("Unable to bind v6 socket to interface: %v", err) - } -} - //export wgVersion func wgVersion() *C.char { return versionString diff --git a/wireguard-go-bridge/wireguard.h b/wireguard-go-bridge/wireguard.h index 5ae9023..58e688b 100644 --- a/wireguard-go-bridge/wireguard.h +++ b/wireguard-go-bridge/wireguard.h @@ -18,7 +18,6 @@ extern int wgTurnOn(gostring_t settings, int32_t tun_fd); extern void wgTurnOff(int handle); extern int64_t wgSetConfig(int handle, gostring_t settings); extern char *wgGetConfig(int handle); -extern void wgBindInterfaceScope(int handle, int32_t ifscope); extern const char *wgVersion(); #endif |