vendor: Bump github.com/AudriusButkevicius/go-nat-pmp
This commit is contained in:
13
vendor/github.com/AudriusButkevicius/go-nat-pmp/natpmp.go
generated
vendored
13
vendor/github.com/AudriusButkevicius/go-nat-pmp/natpmp.go
generated
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user