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

获取不到主机ip地址,这个是怎么回事? #78

Closed
chenyangguang opened this issue Nov 26, 2017 · 2 comments
Closed

获取不到主机ip地址,这个是怎么回事? #78

chenyangguang opened this issue Nov 26, 2017 · 2 comments

Comments

@chenyangguang
Copy link

chenyangguang commented Nov 26, 2017

./go-shadowsocks2 -s ss://AEAD_CHACHA20_POLY1305:my-pwd@:9999 -verbose
2017/11/26 09:26:32 listening UDP on :9999
2017/11/26 09:26:32 listening TCP on :9999

 ./go-shadowsocks2 -c ss://AEAD_CHACHA20_POLY1305:my-pwd@[my-ip]:9999 \
     -verbose -socks :1080 -u -udptun :8053=8.8.8.8:53,:8054=8.8.4.4:53 \
                              -tcptun :8053=8.8.8.8:53,:8054=8.8.4.4:53

报这个反馈:
2017/11/26 09:34:13 failed to get target address: SOCKS error: 7

查了源码出处是这里报的错误: 
tcp.go 文件下面第63行的 tcpLocal()方法中 调用了**getAddr(c)**这个地方产生的 err 错误.
logf("failed to get target address: %v", err)

@chenyangguang chenyangguang changed the title 获取到主机ip地址,这个是怎么回事? 获取不到主机ip地址,这个是怎么回事? Nov 26, 2017
@mohuishou
Copy link

遇到了相同的错误,自己改了

@chenyangguang
Copy link
Author

chenyangguang commented Nov 26, 2017

@mohuishou 你怎么改的?有记录?看到master已经合并解决了这个错误提示了,但是配合SwitchyOmega 连不上 google, 也没有错误日志呀.这个是哪里还有问题?
2017/11/26 19:38:02 failed to connect to server [my-ip]:port: dial tcp my-ip:port: getsockopt: connection timed out

客户端浏览器 tcp连接还是超时了.

riobard added a commit that referenced this issue Nov 26, 2017
dfang added a commit to dfang/go-shadowsocks2 that referenced this issue Nov 28, 2018
… into shadowsocks-master

* 'master' of https://github.com/shadowsocks/go-shadowsocks2:
  Fix incorrect AEAD cipher name
  Fix the overlap problem of udp decryption. Now return the correct length of data read by ReadFrom.
  Better chacha20 implementation
  Use copy instead of a new buffer
  Fix losing number of line when wrap the log function
  Fix the buffer overlap panic when read a udp/packet socket
  Deprecate -key option in README
  Updated README
  Travis CI build
  Applied Apache License 2.0
  Better var naming
  fixed shadowsocks#78
  Documentation for UDP Associate support.
  Better handling TCP handshake for UDPAssociate
  Robust UDP socks5 support.
dfang added a commit to dfang/go-shadowsocks2 that referenced this issue Nov 28, 2018
* shadowsocks-master:
  Fix incorrect AEAD cipher name
  Fix the overlap problem of udp decryption. Now return the correct length of data read by ReadFrom.
  Better chacha20 implementation
  Use copy instead of a new buffer
  Fix losing number of line when wrap the log function
  Fix the buffer overlap panic when read a udp/packet socket
  Deprecate -key option in README
  Updated README
  Travis CI build
  Applied Apache License 2.0
  Better var naming
  fixed shadowsocks#78
  Documentation for UDP Associate support.
  Better handling TCP handshake for UDPAssociate
  Robust UDP socks5 support.
xiahaijiao pushed a commit to xiahaijiao/go-shadowsocks2 that referenced this issue Jan 10, 2024
xiahaijiao pushed a commit to xiahaijiao/go-shadowsocks2 that referenced this issue Jan 10, 2024
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