Changing Beehive's Port Number

59 views
Skip to first unread message

Winston Yeung

unread,
Feb 24, 2015, 12:20:26 PM2/24/15
to beehi...@googlegroups.com
Hello,


I tried changing Beehive's port number (so I can interact with another library that is listening on another port), but for some reason it is always serving to 7767. I changed the port number in hive.go. Is there something I am missing?


Thanks,


Winston

Soheil Hassas Yeganeh

unread,
Mar 2, 2015, 9:14:01 PM3/2/15
to beehi...@googlegroups.com
Hi Winston,

You should not change the code in hive.go. You can either:
1) use "-laddr" command line parameter to "127.0.0.1:8888" or something like that, 
2) or set the Addr in a HiveConfig and pass it through the NewHiveWithConfig method. Something like this:

cfg := bh.DefaultCfg
cfg.Addr = "127.0.0.1:8888"
hive := bh.NewHiveWithConfig(cfg)

-- Soheil
Reply all
Reply to author
Forward
0 new messages