mirror of https://github.com/cbeuw/Cloak
Fix a null pointer
This commit is contained in:
parent
d7d1c70b77
commit
cffee1452a
|
|
@ -45,7 +45,6 @@ func dispatchConnection(conn net.Conn, sta *server.State) {
|
||||||
webConn, err := net.Dial("tcp", sta.WebServerAddr)
|
webConn, err := net.Dial("tcp", sta.WebServerAddr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Making connection to redirection server: %v\n", err)
|
log.Printf("Making connection to redirection server: %v\n", err)
|
||||||
go webConn.Close()
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
webConn.Write(data)
|
webConn.Write(data)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue