loveuall / kcptun-00 Goto Github PK
View Code? Open in Web Editor NEWadd config.json for https://github.com/xtaci/kcptun
License: MIT License
add config.json for https://github.com/xtaci/kcptun
License: MIT License
一. readme中提到:
原项目转发层次:客户端应用层 -> socks5/ss 代理 -> kcp udp -> 服务器 kcp udp -> socks5/ss 代理 -> 请求的真实服务器
对此我不认同,kcptun源项目客户端使用无需单独配置socks5代理,直接设置kcptun client的监听地址就可以进行代理。我自己开了分之,仅仅在server端里加了几行socks5代理的代码,就可以直接使用了,client无需任何修改:https://github.com/buaazp/kcptun/tree/self-proxy
所以我认为你所谓的优化实际上是负优化:
项目中减少了一层 tcp 转发,路由器中使用当然是把一些不必要的层去掉。
二. https://github.com/loveuall/kcptun/blob/master/cmd/server/main_server.go#L452
循环起多个goroutine的话,用sync.WaitGroup来控制,你这map range里面加i判断长度的方法,我就不评价了。
三. 你声称自己实现了部分socks5的功能(看注释风格完全不像你自己写的,如果是从别处拷过来开源代码请著名作者和license),说是为了不引入3rd包,代码简单,但是你这些代码功能太少,连基本的socks认证,ipv6都不支持,毕竟你不是专门解析socks5的库,为何不直接调用成熟的第三方socks包,连云风菊苣都表示自己实现这个太复杂而放弃了,看这儿。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.