summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Harris <pharris@opentext.com>2011-01-11 13:53:50 -0500
committerPeter Harris <pharris@opentext.com>2011-01-11 13:53:50 -0500
commitdb53acae839e9031956d2f61cd7e15ba088fb541 (patch)
treef3eb7187e3cf11eea9a537f88c7d82fc286fdaae
parentc04d051a7e1a0b9d776adfc8ee5d71ddca2dba90 (diff)
Fix typo in TCP selection
Otherwise, we try to connect to remote hosts using Unix (local) sockets.
-rw-r--r--xgob.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/xgob.go b/xgob.go
index 298a269..b5f01ab 100644
--- a/xgob.go
+++ b/xgob.go
@@ -160,7 +160,7 @@ func open(host string, protocol string, display int) io.ReadWriteCloser {
}
if(len(host) > 0 || len(protocol) > 0) {
- if len(protocol) > 0 || "unix" == host { /* follow the old unix: rule */
+ if len(protocol) > 0 || "unix" != host { /* follow the old unix: rule */
/* display specifies TCP */
port := X_TCP_PORT + display;
return open_tcp(host, protocol, port);