p2p/nat: small typos

This commit is contained in:
Seungbae Yu 2024-04-15 18:56:54 +09:00
parent 05a8b887a9
commit 0ebec61a54
2 changed files with 3 additions and 3 deletions

View file

@ -25,7 +25,7 @@ import (
natpmp "github.com/jackpal/go-nat-pmp"
)
// natPMPClient adapts the NAT-PMP protocol implementation so it conforms to
// pmp adapts the NAT-PMP protocol implementation so it conforms to
// the common interface.
type pmp struct {
gw net.IP

View file

@ -205,8 +205,8 @@ func discoverUPnP() Interface {
return nil
}
// finds devices matching the given target and calls matcher for all
// advertised services of each device. The first non-nil service found
// discover finds devices matching the given target and calls matcher for
// all advertised services of each device. The first non-nil service found
// is sent into out. If no service matched, nil is sent.
func discover(out chan<- *upnp, target string, matcher func(goupnp.ServiceClient) *upnp) {
devs, err := goupnp.DiscoverDevices(target)