Jakob Borg
e6866ee980
strings.TrimLeft is not actually TrimPrefix
2015-05-05 13:53:11 +02:00
Jakob Borg
1207d54fdd
Tweak UPnP discovery, avoid non-multicast interfaces ( fixes #1721 )
2015-04-28 22:32:10 +02:00
Audrius Butkevicius
f2b12014e1
Merge pull request #1729 from calmh/lint-clean
...
Run vet and lint. Make us lint clean.
2015-04-29 10:16:36 +01:00
Jakob Borg
60fcaebfdb
Run vet and lint. Make us lint clean.
2015-04-29 10:38:02 +02:00
Jakob Borg
0642402449
Break out UPnP port mapping into a service
2015-04-28 10:25:25 +02:00
Jakob Borg
fd4ea46fd7
Merge pull request #1708 from jarlebring/upnp_close_conn_fix
...
Fix to for routers that cannot handle many open HTTP-connections
2015-04-26 22:54:47 +02:00
Elias Jarlebring
8d8546868d
Fix to for routers that cannot handle many open HTTP-connections
...
Some routers do not respond when too many subsequent SOAP-requests are sent and will generate an EOF-error in the DefaultClient.Do(req). This modification adds a req.Close = True following the description on http://stackoverflow.com/questions/17714494/golang-http-request-results-in-eof-errors-when-making-multiple-requests-successi
2015-04-26 22:31:43 +02:00
jarlebring
d9da02b7a8
Formatting with gofmt
2015-04-26 12:37:37 +02:00
Elias Jarlebring
8f2ad6418d
Fix capitalization in HTTP-header in SOAP request ( fixes #1696 )
...
Some routers are sensitive to the capitalization in "SOAPAction" in the HTTP-header in SOAP request. This modification follows the recommendation of preserving caps in HTTP-headers in go described on http://stackoverflow.com/questions/26351716/how-to-keep-key-case-sensitive-in-request-header-using-golang?lq=1
2015-04-26 12:16:40 +02:00
Audrius Butkevicius
433b923ea7
Add mutex logging
2015-04-23 10:54:14 +01:00
Jakob Borg
c6300a5da8
Tone down UPnP errors a little
2015-04-16 23:45:12 +09:00
Audrius Butkevicius
1b69c2441c
Make UPnP discovery requests on each interface explicitly ( fixes #1113 )
2015-04-16 14:23:36 +01:00
Audrius Butkevicius
d148cd8ccc
Make UPnP timeout configurable
2015-04-16 10:32:12 +01:00
Jakob Borg
32425c5561
MPLv2
2015-03-17 16:02:27 +01:00
Caleb Callaway
af96f7a0cd
Properly handle absolute URLs when parsing UPnP service control URLs
...
Fixes #1187
2015-01-07 21:23:20 -08:00
Audrius Butkevicius
41b1bd2f05
Use ListenMulticastUDP for multicast sockets (potentially fixes #1113 )
2014-12-30 22:27:47 +00:00
Jakob Borg
25e363c5fb
Style tweaks and some *IDG->IGD in UPnP code
2014-12-08 17:07:55 +01:00
Jakob Borg
82c6caef85
Use more inclusive copyright header
2014-11-17 12:54:42 +01:00
Audrius Butkevicius
048883ad27
Remove extra tabs from SOAP payload ( fixes #914 )
2014-10-27 23:33:59 +00:00
Jakob Borg
15ee9a5cac
Break out logger as a reusable component
2014-10-26 13:16:54 +01:00
Caleb Callaway
b7bb3bfee2
UPnP discovery fix for devices that send multiple response packets
...
Fix UPnP discovery and port mapping issues reported in #896
2014-10-22 19:10:44 -07:00
Caleb Callaway
27448bde20
Variable naming clarification
2014-10-22 18:47:15 -07:00
Caleb Callaway
87b9e8fbaf
Parse UPnP service ID from root description and expose it to consumers
2014-10-22 18:47:15 -07:00
Caleb Callaway
9d79859ba6
More verbose debug logging of UPnP SOAP requests
2014-10-22 18:47:15 -07:00
Jakob Borg
198cbacc3e
Be lenient towards malformed UPnP IGD UUIDs ( fixes #890 )
2014-10-21 17:07:11 +02:00
Caleb Callaway
e34f77ba0e
Enable portmapping for individual UPnP services
2014-10-18 10:20:57 -07:00
Caleb Callaway
85677eaf1a
UPnP API for querying of services' external IP address
2014-10-17 20:37:00 -07:00
Caleb Callaway
75d5e74059
Refinements to UPnP documentation
2014-10-17 19:47:08 -07:00
Jakob Borg
2e003e5404
Remove out of date upnp tests
2014-10-16 12:12:59 +02:00
Caleb Callaway
c17507b216
Cleanup UPnP API
...
This commit addresses most of the issues identified in #432 :
* Support UPnP IGDs with both WANIPConnection and WANPPPConnection services
IGDs that offer both WANIPConnection and WANPPPConnection services should
now have port forwarding correctly configured for all services.
* Support multiple UPnP WANDevice and WANConnection descriptions
Per Figure 1 of the InternetGatewayDevice specification
(http://upnp.org/specs/gw/UPnP-gw-InternetGatewayDevice-v1-Device.pdf ),
an IGD may have multiple WAN devices, each with multiple WANConnection
services
* Support for discovery of UPnP InternetGatewayDevice version 2 devices
* Support for discovery of multiple UPnP IGDs
Consumers that cannot yet properly process multiple IGDs can simply use
the first IGD listed in the discovery results
* Logging refinements such as friendly UPnP IGD identifiers in log messages.
2014-10-15 21:48:11 -07:00
Jakob Borg
9edce23e76
Relicense to GPL
2014-10-01 07:53:59 +02:00
Jakob Borg
14817e31f6
Move top level packages to internal.
2014-09-27 09:42:10 +02:00