[tor-commits] [goptlib/master] Change net.ResolveTCPAddr to resolveAddr.
dcf at torproject.org
dcf at torproject.org
Thu Nov 14 07:00:22 UTC 2013
commit 77e9b135f2fb4cea4b2365e5855c8452611657fe
Author: David Fifield <david at bamsoftware.com>
Date: Tue Nov 12 23:01:55 2013 -0800
Change net.ResolveTCPAddr to resolveAddr.
---
pt.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pt.go b/pt.go
index b5466fd..fcd17b8 100644
--- a/pt.go
+++ b/pt.go
@@ -403,7 +403,7 @@ func ServerSetup(methodNames []string) (ServerInfo, error) {
if err != nil {
return info, err
}
- info.OrAddr, err = net.ResolveTCPAddr("tcp", orPort)
+ info.OrAddr, err = resolveAddr(orPort)
if err != nil {
return info, EnvError(fmt.Sprintf("cannot resolve TOR_PT_ORPORT %q: %s", orPort, err.Error()))
}
@@ -415,7 +415,7 @@ func ServerSetup(methodNames []string) (ServerInfo, error) {
var extendedOrPort = getenv("TOR_PT_EXTENDED_SERVER_PORT")
if extendedOrPort != "" {
- info.ExtendedOrAddr, err = net.ResolveTCPAddr("tcp", extendedOrPort)
+ info.ExtendedOrAddr, err = resolveAddr(extendedOrPort)
if err != nil {
return info, EnvError(fmt.Sprintf("cannot resolve TOR_PT_EXTENDED_SERVER_PORT %q: %s", extendedOrPort, err.Error()))
}
More information about the tor-commits
mailing list