start-stop-restart for TCP server

This commit is contained in:
idk
2019-05-18 10:43:57 -04:00
parent d5f792142e
commit 76b5f7acb2
10 changed files with 292 additions and 154 deletions

View File

@ -39,7 +39,7 @@ func (c *Conf) SetInQuantity(label ...string) {
if v, ok := c.GetInt("inbound.quantity", label...); ok {
c.InQuantity = v
} else {
c.InQuantity = 5
c.InQuantity = 1
}
}
@ -48,6 +48,6 @@ func (c *Conf) SetOutQuantity(label ...string) {
if v, ok := c.GetInt("outbound.quantity", label...); ok {
c.OutQuantity = v
} else {
c.OutQuantity = 5
c.OutQuantity = 1
}
}