Closed cxz66666 closed 9 months ago
你好, ci过不了, 把测试也改一下
好的,我晚上修一下
Merging #33 (a447d34) into master (ea3e2a0) will increase coverage by
0.23%
. The diff coverage is28.88%
.
@@ Coverage Diff @@
## master #33 +/- ##
==========================================
+ Coverage 61.95% 62.19% +0.23%
==========================================
Files 14 14
Lines 778 775 -3
==========================================
Hits 482 482
+ Misses 236 233 -3
Partials 60 60
Flag | Coverage Δ | |
---|---|---|
unittests | 62.19% <28.88%> (+0.23%) |
:arrow_up: |
Flags with carried forward coverage won't be shown. Click here to find out more.
Files Changed | Coverage Δ | |
---|---|---|
statute/auth.go | 67.34% <ø> (ø) |
|
statute/datagram.go | 97.53% <ø> (ø) |
|
handle.go | 46.61% <28.88%> (+0.58%) |
:arrow_up: |
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
已修复 @thinkgos
@cxz66666 好的, 找个时间我研究一下
https://github.com/things-go/go-socks5/issues/29 和 https://github.com/things-go/go-socks5/pull/1 中提到,RFC标准中的Associate function逻辑和当前实现的有出入,
https://github.com/things-go/go-socks5/pull/1#issuecomment-680734890 中提到
但目前实现逻辑恰好是相反的,因此本提交修复了这个问题,使其符合RFC1928标准
目前可以顺利通过 https://github.com/txthinking/testsocks5 和 https://github.com/semigodking/socks5chk 的udp转发测试,同时正确处理了EOF和连接关闭的情况,可以正常退出协程。