45 Commits

Author SHA1 Message Date
Luke Champine
11da932010 Merge branch 'separate-forward-tcp' into 'master'
Add separate ForwardTCP and ForwardUDP

See merge request NebulousLabs/go-upnp!18
2021-10-02 18:20:29 +00:00
Nate
bc58fa18f4 add ForwardTCP and ForwardUDP funcs 2021-10-02 19:35:47 +09:00
Luke Champine
67b91c9a5c Merge branch 'sevey/go-mod' into 'master'
Initialize go mod

See merge request NebulousLabs/go-upnp!16
2021-04-14 17:23:02 +00:00
Matthew Sevey
6429a6632d Run go mod init and go mod tidy 2021-04-14 11:07:47 -04:00
lukechampine
3a71999ed0 Merge branch 'frennkie-add-check-forward' 2018-10-11 15:46:42 -04:00
lukechampine
20f5e17c38 clean up some boolean checks 2018-10-11 15:46:17 -04:00
Robert Habermann
e41a51859d add tests 2018-10-11 15:43:22 -04:00
Robert Habermann
065c93bdc2 clean up and use strings.Contains instead of RegEx 2018-10-11 15:43:22 -04:00
Robert Habermann
1ccfc75e29 rename methods 2018-10-11 15:43:21 -04:00
Robert Habermann
11c38df8dd wip 2018-10-11 15:43:21 -04:00
Robert Habermann
2b4da134ab add possible return statements 2018-10-11 15:43:21 -04:00
Robert Habermann
1a02e7a8e4 start check forward PR 2018-10-11 15:43:21 -04:00
Luke Champine
b90c63871d Merge branch 'update-paths' into 'master'
update import paths

See merge request NebulousLabs/go-upnp!14
2018-07-16 15:42:10 +00:00
Chris
5078a4d8ed update import paths 2018-07-16 11:22:40 -04:00
Luke Champine
29b680b06c Merge pull request #13 from beeceej/master
fix link to godoc in readme
2018-02-02 13:50:39 -05:00
Brian Jones
62fcebe544 fix link in readme 2018-02-02 11:58:42 -06:00
Luke Champine
e12f55b8a5 Merge pull request #11 from jfcg/master
Rate-limit Add/Delete port mappings
2017-12-20 17:00:38 -05:00
Serhat Şevki Dinçer
a625a89506 Rate-limit Add/Delete port mappings
Fixes #10
2017-12-21 00:23:09 +03:00
Luke Champine
1be4557baa Merge pull request #9 from dmmcquay/huin-goupnp
vendor: move github.com/huin/goupnp out of vendor
2017-10-04 22:11:21 -04:00
Derek McQuay
29a8814b4f vendor: move github.com/huin/goupnp out of vendor
Because github.com/huin/goupnp was modified for specific use by this
repo, it became difficult to correctly vendor this using a tool. To
avoid this issue, github.com/huin/goupnp was taken out of the vendor dir
and included as a packge in the repo.

Signed-off-by: Derek McQuay <derekmcquay@gmail.com>
2017-10-04 19:01:49 -07:00
David Vorick
620e235426 Merge pull request #8 from NebulousLabs/ctx
add context to Discover
2017-09-08 17:42:47 -04:00
lukechampine
08c0206839 add context to Discover 2017-09-05 21:28:45 -04:00
lukechampine
11ba8545e2 switch to fastrand 2017-03-23 17:00:02 -04:00
lukechampine
c2d60bb8c3 add error handling to readme example 2017-03-22 12:27:23 -04:00
lukechampine
4cb2878bf1 satisfy go-staticcheck 2016-12-13 21:22:11 -05:00
David Vorick
73e8530356 Merge pull request #6 from johnathanhowell/racefix-test
add regression test for Discover() race condition
2016-09-20 04:02:58 +00:00
Johnathan Howell
5d0dfaa823 skip tests which require a router if not discovered 2016-09-19 23:16:24 -04:00
Johnathan Howell
0b23bb8ca9 wait for all discover threads to complete 2016-09-19 18:51:28 -04:00
Johnathan Howell
ed266f51a7 add TestConcurrentUPNP 2016-09-19 18:47:03 -04:00
David Vorick
10f2e2847d Merge pull request #5 from johnathanhowell/discover-racefix
Patch Discover() race condition
2016-09-12 11:06:18 -04:00
Johnathan Howell
754b7338d0 use milliseconds for greater backoff distribution 2016-09-08 16:34:42 -04:00
Johnathan Howell
b0ab2c9d3f try a few times to discover, with sleeps 2016-09-07 22:32:10 -04:00
Luke Champine
adec7b11db Merge pull request #4 from mnsl/typos
Fix typo in README.md
2016-08-17 14:28:30 -04:00
Jane Maunsell
62b51e37ae fix README typo 2016-08-17 11:58:41 -04:00
David Vorick
54272a37f4 Merge pull request #3 from NebulousLabs/vendor
Vendor goupnp dependency
2016-04-25 21:23:55 -04:00
lukechampine
26a6a4da93 remove logging from httpu and ssdp 2016-04-25 21:23:19 -04:00
lukechampine
026fadc1db vendor github.com/huin/goupnp 2016-04-25 21:23:19 -04:00
Luke Champine
7d9aabd4b2 Merge pull request #2 from NebulousLabs/remove-iface
replace IGD interface with struct
2016-03-14 13:19:27 -04:00
lukechampine
484d5839bd replace IGD interface with struct
An interface was overkill here.
2016-03-14 13:17:36 -04:00
lukechampine
643a2ffac2 Clear deletes both mappings before returning error 2015-09-05 22:03:46 -04:00
Luke Champine
44ad0c4c05 remove dummy ip 2015-08-20 15:31:45 -04:00
lukechampine
fa56c0c88a typo 2015-07-23 18:26:35 -04:00
lukechampine
9a9265565e tweak documentation 2015-07-10 19:06:18 -04:00
lukechampine
53a3cf48a3 add TODOs 2015-07-10 03:10:58 -04:00
lukechampine
322d545e5e initial commit 2015-07-10 03:07:38 -04:00