Created
May 7, 2011 21:15
-
-
Save ahf/960848 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 36cd3bb1f73577190d69eb7a94d4389f8846dd80 Mon Sep 17 00:00:00 2001 | |
From: =?UTF-8?q?Alexander=20F=C3=A6r=C3=B8y?= <ahf@0x90.dk> | |
Date: Sat, 7 May 2011 23:13:34 +0200 | |
Subject: [PATCH] Make ident.go build on newer Go. | |
Go's net.Dial() has recently changed API. | |
--- | |
ident.go | 2 +- | |
1 files changed, 1 insertions(+), 1 deletions(-) | |
diff --git a/ident.go b/ident.go | |
index e5ad944..f2ddcb5 100644 | |
--- a/ident.go | |
+++ b/ident.go | |
@@ -296,7 +296,7 @@ Malformed: | |
// The function returns the source port reflected on the server, the destination port reflected | |
// on the server and an IdentResponse struct containing the ident information. | |
func Query(hostname string, sPort int, cPort int) (*Response, os.Error) { | |
- conn, err1 := net.Dial("tcp", "", hostname+":"+string(identPort)) | |
+ conn, err1 := net.Dial("tcp", hostname+":"+string(identPort)) | |
if err1 != nil { | |
return nil, err1 | |
} | |
-- | |
1.7.3.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment