diff options
Diffstat (limited to 'xgob.go')
-rw-r--r-- | xgob.go | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -21,10 +21,10 @@ const ( const ( FamilyInternet uint16 = 0 - FamilyDECNet = 1 - FamilyCHAOS = 2 - FamilyServerInterpreted = 5 - FamilyInternet6 = 6 + FamilyDECNet = 1 + FamilyCHAOS = 2 + FamilyServerInterpreted = 5 + FamilyInternet6 = 6 ) type Format struct { @@ -200,7 +200,7 @@ func open_tcp(host string, protocol string, port int) io.ReadWriteCloser { host = "localhost" } - conn, err := net.Dial(proto, "", host+":"+strconv.Itoa(port)) + conn, err := net.Dial(proto, host+":"+strconv.Itoa(port)) // TODO - remove if err != nil { println("TCP error ", err.String()) @@ -213,7 +213,7 @@ func open_unix(protocol string, file string) io.ReadWriteCloser { return nil } - conn, err := net.Dial("unix", "", file) + conn, err := net.Dial("unix", file) // TODO - remove if err != nil { println("Unix socket error ", err.String()) |