Permalink
Browse files

allow specifying listen address

  • Loading branch information...
justone committed Jan 10, 2016
1 parent f9e11d9 commit e3b0c478100e4a51548567c92a8170ed41e06fd7
Showing with 2 additions and 2 deletions.
  1. +2 −2 broker.go
@@ -11,7 +11,7 @@ import (
)
type BrokerCommand struct {
// nothing yet
Address string `short:"a" long:"address" description:"Address to listen on" default:":3000"`
}
var brokerCommand BrokerCommand
@@ -46,7 +46,7 @@ func (x *BrokerCommand) Execute(args []string) error {
bp.Send(bus, string(body))
})
m.Run()
m.RunOnAddr(brokerCommand.Address)
return nil
}

0 comments on commit e3b0c47

Please sign in to comment.