mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-14 20:38:10 -07:00
tracker: Pass listen address into tracker.Server.Serve()
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user