update webroot and multicast
This commit is contained in:
parent
88b0cb22ca
commit
4372bfa983
2
.gitignore
vendored
2
.gitignore
vendored
@ -22,5 +22,5 @@ _testmain.go
|
|||||||
*.exe
|
*.exe
|
||||||
*.test
|
*.test
|
||||||
*.prof
|
*.prof
|
||||||
|
micro-daemon
|
||||||
webroot/nodes.json
|
webroot/nodes.json
|
||||||
|
4
.gitmodules
vendored
Normal file
4
.gitmodules
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[submodule "webroot"]
|
||||||
|
path = webroot
|
||||||
|
url = https://github.com/monitormap/micro-web.git
|
||||||
|
branch = gh-pages
|
@ -14,7 +14,7 @@ const (
|
|||||||
MultiCastGroup string = "ff02:0:0:0:0:0:2:1001"
|
MultiCastGroup string = "ff02:0:0:0:0:0:2:1001"
|
||||||
|
|
||||||
// default udp port used by announced
|
// default udp port used by announced
|
||||||
Port int = 1001
|
Port string = "1001"
|
||||||
|
|
||||||
// maximum receivable size
|
// maximum receivable size
|
||||||
MaxDataGramSize int = 8192
|
MaxDataGramSize int = 8192
|
||||||
@ -66,9 +66,7 @@ func (coll *Collector) Close() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (coll *Collector) sendOnce() {
|
func (coll *Collector) sendOnce() {
|
||||||
// TODO
|
coll.sendPacket(net.JoinHostPort(MultiCastGroup,Port))
|
||||||
coll.sendPacket("[2a06:8782:ffbb:1337:c24a:ff:fe2c:c7ac]:1001")
|
|
||||||
coll.sendPacket("[2001:bf7:540:0:32b5:c2ff:fe6e:99d5]:1001")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (coll *Collector) sendPacket(address string) {
|
func (coll *Collector) sendPacket(address string) {
|
||||||
|
1
webroot
Submodule
1
webroot
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit dc5e6368022cf1b32f1dac361ac0ee6d2ae1b55c
|
Loading…
Reference in New Issue
Block a user