diff options
author | Christian Pointner <equinox@helsinki.at> | 2017-01-11 18:00:40 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2017-01-11 18:00:40 (GMT) |
commit | 8d49e38e991f8be59ed9290f433d86944c617f16 (patch) | |
tree | 543a22f240b3cdf973683d9ecbb3ce2c384f0033 /src/rhctl/main.go | |
parent | 940d34b97d60f0ea5aa3525e63eba02db4243ff5 (diff) |
added noptcp interface (not working yet)
Diffstat (limited to 'src/rhctl/main.go')
-rw-r--r-- | src/rhctl/main.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/rhctl/main.go b/src/rhctl/main.go index 2302e6b..f09fe73 100644 --- a/src/rhctl/main.go +++ b/src/rhctl/main.go @@ -109,6 +109,11 @@ func main() { return } web := WebInit(conf, ctrl) + nop, err := NopTCPInit(conf, ctrl) + if err != nil { + rhl.Printf("Error: failed to initialize nop-tcp interface: %v", err) + return + } //************************************************** // running essential parts @@ -154,6 +159,14 @@ func main() { }() } + if conf.Clients.Noptcp.Address != "" { + go func() { + rhl.Printf("starting nop-tcp interface") + nop.Run() + rhl.Printf("nop-tcp interface just stopped") + }() + } + //************************************************** <-stop rhl.Printf("at least one essential part has stopped - bringing down the whole process") |