allow banner

This commit is contained in:
Zack Scholl 2019-04-30 17:09:44 -06:00
parent 63ec16f7fb
commit c5bbdb4cb5
3 changed files with 3 additions and 3 deletions

View File

@ -220,7 +220,7 @@ func relay(c *cli.Context) (err error) {
continue continue
} }
go func(portStr string) { go func(portStr string) {
err = tcp.Run(debugString, portStr) err = tcp.Run(debugString, portStr, c.GlobalString("ports"))
if err != nil { if err != nil {
panic(err) panic(err)
} }

View File

@ -236,7 +236,7 @@ func (c *Client) Send(options TransferOptions) (err error) {
if c.Options.Debug { if c.Options.Debug {
debugString = "debug" debugString = "debug"
} }
err = tcp.Run(debugString, portStr) err = tcp.Run(debugString, portStr, strings.Join(c.Options.RelayPorts, ","))
if err != nil { if err != nil {
panic(err) panic(err)
} }

View File

@ -12,7 +12,7 @@ import (
func TestCroc(t *testing.T) { func TestCroc(t *testing.T) {
defer log.Flush() defer log.Flush()
go tcp.Run("debug", "8081") go tcp.Run("debug", "8081", "8082,8083,8084,8085")
go tcp.Run("debug", "8082") go tcp.Run("debug", "8082")
go tcp.Run("debug", "8083") go tcp.Run("debug", "8083")
go tcp.Run("debug", "8084") go tcp.Run("debug", "8084")