mirror of https://github.com/schollz/croc.git
allow banner
This commit is contained in:
parent
63ec16f7fb
commit
c5bbdb4cb5
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue