Clash.Mini icon indicating copy to clipboard operation
Clash.Mini copied to clipboard

修改混合端口后更新订阅或者重启时被重置

Open syazyz opened this issue 3 years ago • 4 comments

应该是机场订阅文件里把端口写死了,所以每次都被自动覆盖回去。能否在程序端把本地配置文件里定的端口设置为优先级更高?

syazyz avatar May 26 '22 11:05 syazyz

@syazyz 请开启 mixin 模式

MetaCubeX avatar May 26 '22 11:05 MetaCubeX

开启了mixin模式,选择的general,并把general.yaml编辑成以下内容: mixed-port: 7890 allow-lan: true mode: Rule log-level: info external-controller: 127.0.0.1:9090

然后重启后mixed port还是0。不知道为何未起效

编辑: 看了下日志,似乎是7890先被http监听端口占了,后面混合端口无法更改这一已占用端口。 2022-05-31T18:22:54+08:00 [ INFO ] HTTP proxy listening at: [::]:7890 2022-05-31T18:22:54+08:00 [ INFO ] SOCKS proxy listening at: [::]:7891 2022-05-31T18:22:54+08:00 [ WARN ] Failed to start Redir UDP Listener: not supported on current platform 2022-05-31T18:22:54+08:00 [ INFO ] Redirect proxy listening at: [::]:7892 2022-05-31T18:22:54+08:00 [ EROR ] Start Redir server error: not supported on current platform 2022-05-31T18:22:54+08:00 [ EROR ] Start Mixed(http+socks) server error: listen tcp :7890: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.

我试试看在配置里直接改http端口。

syazyz avatar May 31 '22 10:05 syazyz

@syazyz 看看log是不是被其他端口占了

MetaCubeX avatar May 31 '22 10:05 MetaCubeX

@syazyz 看看log是不是被其他端口占了

将http端口改了后已解决,感谢。

syazyz avatar May 31 '22 10:05 syazyz