Skip to content

Commit

Permalink
allow specifying listen address
Browse files Browse the repository at this point in the history
  • Loading branch information
justone committed Jan 10, 2016
1 parent f9e11d9 commit e3b0c47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions broker.go
Expand Up @@ -11,7 +11,7 @@ import (
) )


type BrokerCommand struct { type BrokerCommand struct {
// nothing yet Address string `short:"a" long:"address" description:"Address to listen on" default:":3000"`
} }


var brokerCommand BrokerCommand var brokerCommand BrokerCommand
Expand Down Expand Up @@ -46,7 +46,7 @@ func (x *BrokerCommand) Execute(args []string) error {


bp.Send(bus, string(body)) bp.Send(bus, string(body))
}) })
m.Run() m.RunOnAddr(brokerCommand.Address)


return nil return nil
} }
Expand Down

0 comments on commit e3b0c47

Please sign in to comment.