mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
allow banner
This commit is contained in:
parent
63ec16f7fb
commit
c5bbdb4cb5
3 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue