aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/nat
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-04-15 19:45:15 +0800
committerFelix Lange <fjl@twurst.com>2016-04-15 19:45:15 +0800
commit6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea (patch)
tree1b3b3677892e2d94400f3604dc6c2dda4c05ccd4 /p2p/nat
parent5c17b2f5211ec98a87140c874483681de4e34391 (diff)
parentbf5ae502ef179490a039c9bcd66d32cd5a7ce5e9 (diff)
downloaddexon-6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea.tar
dexon-6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea.tar.gz
dexon-6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea.tar.bz2
dexon-6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea.tar.lz
dexon-6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea.tar.xz
dexon-6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea.tar.zst
dexon-6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea.zip
Merge pull request #2458 from fjl/go-vet
all: fix go vet warnings
Diffstat (limited to 'p2p/nat')
-rw-r--r--p2p/nat/natupnp.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/p2p/nat/natupnp.go b/p2p/nat/natupnp.go
index 804396e94..6b3fa3f7a 100644
--- a/p2p/nat/natupnp.go
+++ b/p2p/nat/natupnp.go
@@ -107,9 +107,9 @@ func discoverUPnP() Interface {
go discover(found, internetgateway1.URN_WANConnectionDevice_1, func(dev *goupnp.RootDevice, sc goupnp.ServiceClient) *upnp {
switch sc.Service.ServiceType {
case internetgateway1.URN_WANIPConnection_1:
- return &upnp{dev, "IGDv1-IP1", &internetgateway1.WANIPConnection1{sc}}
+ return &upnp{dev, "IGDv1-IP1", &internetgateway1.WANIPConnection1{ServiceClient: sc}}
case internetgateway1.URN_WANPPPConnection_1:
- return &upnp{dev, "IGDv1-PPP1", &internetgateway1.WANPPPConnection1{sc}}
+ return &upnp{dev, "IGDv1-PPP1", &internetgateway1.WANPPPConnection1{ServiceClient: sc}}
}
return nil
})
@@ -117,11 +117,11 @@ func discoverUPnP() Interface {
go discover(found, internetgateway2.URN_WANConnectionDevice_2, func(dev *goupnp.RootDevice, sc goupnp.ServiceClient) *upnp {
switch sc.Service.ServiceType {
case internetgateway2.URN_WANIPConnection_1:
- return &upnp{dev, "IGDv2-IP1", &internetgateway2.WANIPConnection1{sc}}
+ return &upnp{dev, "IGDv2-IP1", &internetgateway2.WANIPConnection1{ServiceClient: sc}}
case internetgateway2.URN_WANIPConnection_2:
- return &upnp{dev, "IGDv2-IP2", &internetgateway2.WANIPConnection2{sc}}
+ return &upnp{dev, "IGDv2-IP2", &internetgateway2.WANIPConnection2{ServiceClient: sc}}
case internetgateway2.URN_WANPPPConnection_1:
- return &upnp{dev, "IGDv2-PPP1", &internetgateway2.WANPPPConnection1{sc}}
+ return &upnp{dev, "IGDv2-PPP1", &internetgateway2.WANPPPConnection1{ServiceClient: sc}}
}
return nil
})