Browse Source

update proxy dial log error level

pull/15/head
Jason 5 years ago
parent
commit
e92c6f9e57
  1. 2
      proxy/tcp.go
  2. 2
      proxy/udp.go

2
proxy/tcp.go

@ -97,7 +97,7 @@ func (h *tcpHandler) Handle(conn net.Conn, target *net.TCPAddr) error {
// Dial
remoteConn, err := dial(proxyAddr, targetAddr)
if err != nil {
log.Infof("Dial %v: %v", proxyAddr, err)
log.Infof("Dial: %v", err)
return err
}

2
proxy/udp.go

@ -75,7 +75,7 @@ func (h *udpHandler) Connect(conn core.UDPConn, target *net.UDPAddr) error {
// Dial
remoteConn, remoteAddr, err := dialUDP(proxyAddr, targetAddr)
if err != nil {
log.Infof("DialUDP %v: %v", proxyAddr, err)
log.Infof("DialUDP: %v", err)
return err
}

Loading…
Cancel
Save