Fix a null pointer

This commit is contained in:
Qian Wang 2019-02-22 16:22:40 +11:00
parent d7d1c70b77
commit cffee1452a
1 changed files with 0 additions and 1 deletions

View File

@ -45,7 +45,6 @@ func dispatchConnection(conn net.Conn, sta *server.State) {
webConn, err := net.Dial("tcp", sta.WebServerAddr)
if err != nil {
log.Printf("Making connection to redirection server: %v\n", err)
go webConn.Close()
return
}
webConn.Write(data)