This commit is contained in:
Amrit Panesar committed 2017-12-28 21:53:46 -08:00
1 parent d9c4c90936
commit a28822f121
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ import (
"github.com/spf13/viper"
)
func handleConnection(conn net.Conn) {
func fiche(conn net.Conn) {
remoteHost, err := net.LookupCNAME(conn.RemoteAddr().String())
if err != nil {
remoteHost = conn.RemoteAddr().String()
+1 -1
View File
@@ -28,6 +28,6 @@ func main() {
log.Printf("Error on accepting connection!")
continue
}
go handleConnection(conn)
go fiche(conn)
}
}