Added a new command 'weave status', implemented via an http listener #11
This commit is contained in:
1 parent
81e8a9b987
commit
a113da0e34
4 files changed
+60
-5
No files matched your search
+4
-2
@@ -1,7 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/zettio/weave"
|
||||
"github.com/bboreham/weave"
|
||||
"code.google.com/p/gopacket/layers"
|
||||
"crypto/sha256"
|
||||
"flag"
|
||||
@@ -70,7 +70,7 @@ func main() {
|
||||
flag.IntVar(&bufSz, "bufsz", 8, "capture buffer size in MB (defaults to 8MB)")
|
||||
flag.Parse()
|
||||
peers = flag.Args()
|
||||
|
||||
|
||||
if ifaceName == "" {
|
||||
fmt.Println("Missing required parameter 'iface'")
|
||||
os.Exit(1)
|
||||
@@ -123,6 +123,8 @@ func main() {
|
||||
}
|
||||
}()
|
||||
}
|
||||
httpResponder := weave.NewHttpStatusResponder(router)
|
||||
go httpResponder.ListenAndServe()
|
||||
handleSignals(router)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user