vendor: Bump github.com/AudriusButkevicius/go-nat-pmp

This commit is contained in:
Jakob Borg
2016-05-22 17:43:55 +09:00
parent a0ec4467fd
commit a89d487510
4 changed files with 1 additions and 73 deletions

View File

@@ -4,8 +4,6 @@ import (
"fmt"
"net"
"time"
"github.com/jackpal/gateway"
)
// Implement the NAT-PMP protocol, typically supported by Apple routers and open source
@@ -34,17 +32,6 @@ func NewClient(gateway net.IP, timeout time.Duration) (nat *Client) {
return &Client{gateway, timeout}
}
// Create a NAT-PMP client for the NAT-PMP server at the default gateway.
func NewClientForDefaultGateway(timeout time.Duration) (nat *Client, err error) {
var g net.IP
g, err = gateway.DiscoverGateway()
if err != nil {
return
}
nat = NewClient(g, timeout)
return
}
// Results of the NAT-PMP GetExternalAddress operation
type GetExternalAddressResult struct {
SecondsSinceStartOfEpoc uint32