Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slice bounds out of range [:16] with capacity 0 #41

Open
certaintls opened this issue Jul 25, 2022 · 1 comment
Open

slice bounds out of range [:16] with capacity 0 #41

certaintls opened this issue Jul 25, 2022 · 1 comment

Comments

@certaintls
Copy link

When I followed the documentation to start the dispatcher with shadow, there was no error on the server side, after

./shapeshifter-dispatcher -transparent -server -state state -target 127.0.0.1:3333 -transports shadow -bindaddr shadow-127.0.0.1:2222 -optionsFile ConfigFiles/shadowServer.json -logLevel DEBUG -enableLogging
shadow listening on 127.0.0.1:2222

But, when I got error on the client side

./shapeshifter-dispatcher -transparent -client -state state -transports shadow -proxylistenaddr 127.0.0.1:9999 -optionsFile ConfigFiles/shadowClient.json -logLevel DEBUG -enableLogging
Dialing 
panic: runtime error: slice bounds out of range [:16] with capacity 0

goroutine 5 [running]:
github.com/OperatorFoundation/go-shadowsocks2/darkstar.getServerIdentifier({0xc00001a210?, 0xc000020100?}, 0x8ae)
	/go/pkg/mod/github.com/!operator!foundation/go-shadowsocks2@v1.1.7/darkstar/client.go:198 +0xca
github.com/OperatorFoundation/go-shadowsocks2/darkstar.NewDarkStarClient({0xc000020100?, 0x4?}, {0xc00001a210, 0xe}, 0x0?)
	/go/pkg/mod/github.com/!operator!foundation/go-shadowsocks2@v1.1.7/darkstar/client.go:36 +0xc5
github.com/OperatorFoundation/Shadow-go/shadow/v3.(*Transport).Dial(0xc0001801b0)
	/go/pkg/mod/github.com/!operator!foundation/!shadow-go/shadow/v3@v3.0.4/shadow.go:150 +0x9f
github.com/OperatorFoundation/shapeshifter-dispatcher/modes/transparent_tcp.clientHandler({0x7fff735232ac, 0x6}, {0xc0000fa000, 0x95}, {0x67ded0, 0xc000010010}, 0x640e30?)
	/workspaces/shapeshifter-dispatcher/modes/transparent_tcp/transparent_tcp.go:82 +0x1c7
created by github.com/OperatorFoundation/shapeshifter-dispatcher/modes.clientAcceptLoop
	/workspaces/shapeshifter-dispatcher/modes/tcp_common.go:73 +0x212

The error message doesn't tell the end user what is wrong.

@consuelita
Copy link
Contributor

Hello, thank you for this, we are working on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants