UPnP Port Mapping (fixes #79)

This commit is contained in:
Jakob Borg
2014-04-18 13:20:42 +02:00
parent f2ed2d98d8
commit 9fb60d6935
4 changed files with 342 additions and 6 deletions

12
upnp/debug.go Normal file
View File

@@ -0,0 +1,12 @@
package upnp
import (
"log"
"os"
"strings"
)
var (
dlog = log.New(os.Stderr, "upnp: ", log.Lmicroseconds|log.Lshortfile)
debug = strings.Contains(os.Getenv("STTRACE"), "upnp")
)