Use specified port for http listener

This commit is contained in:
Bryan Boreham committed 2014-10-10 17:36:46 +01:00
1 parent 03cd04249c
commit 50d343e2fb
3 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -103,7 +103,7 @@ func notUsHandler() dns.HandlerFunc {
func StartServer(ifaceName string, dnsPort int, httpPort int, wait int) error {
var zone = new(ZoneDb)
go ListenHttp(zone)
go ListenHttp(zone, httpPort)
var iface *net.Interface = nil
if ifaceName != "" {