aboutsummaryrefslogtreecommitdiffstats
path: root/handshake/send.go
diff options
context:
space:
mode:
Diffstat (limited to 'handshake/send.go')
-rw-r--r--handshake/send.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/handshake/send.go b/handshake/send.go
index 444db70..95c8f48 100644
--- a/handshake/send.go
+++ b/handshake/send.go
@@ -31,7 +31,7 @@ func loadKeys() (key.BoxPublicKey, key.SigPublicKey, error) {
}
func sendKeys(rhost string, boxPubKey key.BoxPublicKey, sigPubKey key.SigPublicKey) error {
- raddr := net.JoinHostPort(rhost, port)
+ raddr := net.JoinHostPort(rhost, fmt.Sprintf("%d", port))
util.Logf("connecting to %s...", raddr)
conn, err := dialWithTimeout(network, raddr, timeout)
if err != nil {