return
}
-type stringAddr string
-
-var _ net.Addr = stringAddr("")
-
-func (stringAddr) Network() string { return "" }
-func (me stringAddr) String() string { return string(me) }
-
// The trackers will be merged with the existing ones. If the Info isn't yet known, it will be set.
// spec.DisallowDataDownload/Upload will be read and applied
// The display name is replaced if the new spec provides one. Note that any `Storage` is ignored.
}
for _, peerAddr := range spec.PeerAddrs {
t.addPeer(PeerInfo{
- Addr: stringAddr(peerAddr),
+ Addr: StringAddr(peerAddr),
Source: PeerSourceDirect,
Trusted: true,
})
--- /dev/null
+package torrent
+
+import "net"
+
+// This adds a net.Addr interface to a string address that has no presumed Network.
+type StringAddr string
+
+var _ net.Addr = StringAddr("")
+
+func (StringAddr) Network() string { return "" }
+func (me StringAddr) String() string { return string(me) }