tracker: Pass listen address into tracker.Server.Serve()

This commit is contained in:
Justin Li
2015-02-21 13:16:21 -05:00
parent f98c675bc7
commit 669128c83a
4 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ type Tracker struct {
// Server represents a server for a given BitTorrent tracker protocol.
type Server interface {
// Serve runs the server and blocks until the server has shut down.
Serve()
Serve(addr string)
// Stop cleanly shuts down the server in a non-blocking manner.
Stop()