Przeglądaj źródła

Fix: compile error in 88aeed5

Rod Hynes 7 lat temu
rodzic
commit
fe75cc29d9
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      psiphon/LookupIP_nobind.go
  2. 1 1
      psiphon/TCPConn_nobind.go

+ 1 - 1
psiphon/LookupIP_nobind.go

@@ -33,7 +33,7 @@ import (
 // simply uses net.LookupIP.
 func LookupIP(ctx context.Context, host string, config *DialConfig) ([]net.IP, error) {
 
-	if config.deviceBinder != nil {
+	if config.DeviceBinder != nil {
 		return nil, common.ContextError(errors.New("LookupIP with DeviceBinder not supported on this platform"))
 	}
 

+ 1 - 1
psiphon/TCPConn_nobind.go

@@ -32,7 +32,7 @@ import (
 // tcpDial is the platform-specific part of DialTCP
 func tcpDial(ctx context.Context, addr string, config *DialConfig) (net.Conn, error) {
 
-	if config.deviceBinder != nil {
+	if config.DeviceBinder != nil {
 		return nil, common.ContextError(errors.New("psiphon.interruptibleTCPDial with DeviceBinder not supported"))
 	}