aboutsummaryrefslogtreecommitdiffstats
path: root/wireguard-go-bridge/api-ios.go
diff options
context:
space:
mode:
Diffstat (limited to 'wireguard-go-bridge/api-ios.go')
-rw-r--r--wireguard-go-bridge/api-ios.go17
1 files changed, 0 insertions, 17 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