mailsex
mailsex
> 楼主认为Qos限速只与ip和端口有关,但是我在测试中发现可能会存在以MAC地址锁速度的情况。 请问是哪家运营商,我也发现偶尔存在这样的问题,因为我的源和目的端口都是动态的。
server_linux_amd64 -l :10000 -t 127.0.0.1:3389 --key password --crypt none --mode fast --mtu 1450 --sndwnd 2048 --rcvwnd 2048 --ds 10 --ps 3 --dscp 46 --nocomp -smuxver 2 -sockbuf 16777217 -smuxbuf 16777217...
> > server_linux_amd64 -l :10000 -t 127.0.0.1:3389 --key password --crypt none --mode fast --mtu 1450 --sndwnd 2048 --rcvwnd 2048 --ds 10 --ps 3 --dscp 46 --nocomp -smuxver 2 -sockbuf 16777217...
支持,可以使用。
-l %SS_LOCAL_HOST%:%SS_LOCAL_PORT% -r %SS_REMOTE_HOST%:%SS_REMOTE_PORT% --key "password" --crypt "none" --mode "fast3" --mtu 1250 --sndwnd 1024 --rcvwnd 1024 --ds 30 --ps 20 --dscp 46 --nocomp --autoexpire 60 -conn 3 -smuxver 2 -sockbuf...
如果能贴一下代码就好了 *It would be nice if you could post the code*
> [see this](https://github.com/HyNetwork/hysteria/issues/462#issuecomment-1281704855) 好的,谢谢。我刚刚也看到这个issue了。
> 支持增加这个功能,尤其对UDP QOS有意义。我现在改代码可以定时reconnect,但上层应用同时也会断开,无法做到无缝迁移 非常感谢大神。
> @mailsex 我不是大神 @f4nff 平滑转移只能期待作者了。 我的改动很简单,只需要在文件pkg/core/client.go第117行(return nil前)增加一行,给有需要的同学参考:(900表示900秒,可以改为自己需要的值) > > ``` > 116 c.quicConn = quicConn > 117 c.pktConn.SetDeadline(time.Now().Add(time.Second * time.Duration(900))) > 118 return nil > ``` 根据我使用kcptun的多年的经验,设置成60秒,对预防UDP Qos 效果比较好。
https://github.com/HyNetwork/hysteria/tree/v1.3.0 作者牛逼。已经实现了这个功能。