Giter Club home page Giter Club logo

kcptun-00's People

Contributors

loveuall avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

kcptun-00's Issues

一些疑问

一. 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包,连云风菊苣都表示自己实现这个太复杂而放弃了,看这儿

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.