Implement port testing. Fixes #11

This commit is contained in:
Martin Polden
2016-04-15 20:52:15 +02:00
parent 6e09b06e7d
commit 4edbd3cf10
5 changed files with 79 additions and 0 deletions

View File

@ -22,6 +22,9 @@ func newTestAPI() *API {
ipFromRequest: func(*http.Request) (net.IP, error) {
return net.ParseIP("127.0.0.1"), nil
},
testPort: func(net.IP, uint64) error {
return nil
},
}
}