Rod Hynes 7 лет назад
Родитель
Сommit
fe75cc29d9
2 измененных файлов с 2 добавлено и 2 удалено
  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"))
 	}