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
|
||||
}
|
||||
go func(portStr string) {
|
||||
err = tcp.Run(debugString, portStr)
|
||||
err = tcp.Run(debugString, portStr, c.GlobalString("ports"))
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
|
@ -236,7 +236,7 @@ func (c *Client) Send(options TransferOptions) (err error) {
|
|||
if c.Options.Debug {
|
||||
debugString = "debug"
|
||||
}
|
||||
err = tcp.Run(debugString, portStr)
|
||||
err = tcp.Run(debugString, portStr, strings.Join(c.Options.RelayPorts, ","))
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ import (
|
|||
func TestCroc(t *testing.T) {
|
||||
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", "8083")
|
||||
go tcp.Run("debug", "8084")
|
||||
|
|
Loading…
Reference in New Issue