Commit 821ab4d3 authored by rui.zheng's avatar rui.zheng

fix https server crash

parent c28e7125
...@@ -5,8 +5,6 @@ import ( ...@@ -5,8 +5,6 @@ import (
"net/url" "net/url"
"strconv" "strconv"
"strings" "strings"
"github.com/go-log/log"
) )
// Node is a proxy node, mainly used to construct a proxy chain. // Node is a proxy node, mainly used to construct a proxy chain.
...@@ -89,8 +87,5 @@ func Can(action string, addr string, whitelist, blacklist *Permissions) bool { ...@@ -89,8 +87,5 @@ func Can(action string, addr string, whitelist, blacklist *Permissions) bool {
return false return false
} }
if Debug {
log.Logf("Can action: %s, host: %s, port %d", action, host, port)
}
return whitelist.Can(action, host, port) && !blacklist.Can(action, host, port) return whitelist.Can(action, host, port) && !blacklist.Can(action, host, port)
} }
...@@ -41,7 +41,7 @@ func TLSListener(addr string, config *tls.Config) (Listener, error) { ...@@ -41,7 +41,7 @@ func TLSListener(addr string, config *tls.Config) (Listener, error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
return &tlsListener{tcpKeepAliveListener{ln.(*net.TCPListener)}}, nil return &tlsListener{ln}, nil
} }
// Wrap a net.Conn into a client tls connection, performing any // Wrap a net.Conn into a client tls connection, performing any
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment