aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/nat/nat.go
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #2914 from fjl/node-coinhabitFelix Lange2016-09-291-5/+1
|\ | | | | cmd/utils, node: make datadir reusable for bzzd
| * p2p/nat: delay auto discovery until first useFelix Lange2016-09-161-5/+1
| | | | | | | | | | | | | | | | | | Port mapper auto discovery used to run immediately after parsing the --nat flag, giving it a slight performance boost. But this is becoming inconvenient because we create node.Node for all geth operations including account management and bare chain interaction. Delay autodiscovery until the first use instead, which avoids any network interaction until the node is actually started.
* | p2p/nat: fix parameter order for AddMappingken101001472016-09-281-2/+2
|/
* all: fix license headers one more timeFelix Lange2015-07-241-1/+1
| | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a.
* all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-231-4/+4
| | | | | All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library".
* all: add some godoc synopsis commentsFelix Lange2015-07-071-1/+1
|
* all: update license informationFelix Lange2015-07-071-0/+16
|
* p2p/nat: tweak port mapping log messages and levelsFelix Lange2015-05-141-7/+6
| | | | | | People stil get confused about the messages. This commit changes the levels so that the only thing printed at the default level (info) is a successful mapping.
* p2p/nat: fix concurrent access to autodisc InterfaceFelix Lange2015-05-141-17/+15
| | | | | | | | | | | | Concurrent calls to Interface methods on autodisc could return a "not discovered" error if the discovery did not finish before the call. autodisc.wait expected the done channel to carry the found Interface but it was closed instead. The fix is to use sync.Once for now, which is easier to get right. And there is a test. Finally. This will have to change again when we introduce re-discovery.
* p2p/nat: less confusing error loggingFelix Lange2015-05-071-3/+5
|
* Updated loggingobscuren2015-04-071-7/+6
|
* p2p/nat: new package for port mapping stuffFelix Lange2015-02-131-0/+235
I have verified that UPnP and NAT-PMP work against an older version of the MiniUPnP daemon running on pfSense. This code is kind of hard to test automatically.