PinkD

Results 22 comments of PinkD

你可以尝试注释 777 行重新编译,在 report 失败的时候不退出。如果能正常继续使用,就没问题,如果会出现网络不通的情况,就说明飞连服务端增加了其它保活的检查,需要研究一下具体的检查并实现,才能防止服务端主动断开连接 https://github.com/PinkD/corplink-rs/blob/43623314016c0259dc94a2ec924e9b40ba48cfec/src/client.rs#L770-L782

在 780 行前面打一条 log 看看能不能打出来,如果能打出来就说明是其他地方触发的退出,如果不能打出来,就把 err 的分支去掉吧。这里不 return 的情况下应该会走到下面的 sleep 才对

从报错来看,是没有给 v6 的字段加上 `Option` ,你可以参考 `vpn_dns_domain_split` 字段给 v6 开头的字段加上,然后将用到的部分增加额外的判空,应该就可以了 https://github.com/PinkD/corplink-rs/blob/d2c9808d1a1962f5b8b9162ebbf5aca0446436f9/src/resp.rs#L77-L81

> 且试了好多个版本都不行,看起来离成功最近的是4.4的版本,但在获取2fa code之后程序就panic了 大概率就是不同版本的飞连有各种不同的字段,现有的代码都是各个版本拼凑的,所以会有不兼容的地方。我这边也只有一个版本,所以也只能靠用户遇到一个修一个

> 遇到个问题调用KeepAliveVPN接口的时候一直报错,这个有没有什么处理思路呢? 可以试试直接注释掉,如果不断连,就能正常用。我也不是很确定这个 keep alive 是不是必需的

fixed in 2adbe377b1b84fb769603a188a2e7b9d2fe3cbae and b388da18a9928d4808f6e6c5069249925740c974

从代码来看只有这个地方有 `token` 字段 https://github.com/PinkD/corplink-rs/blob/dce4e1f59f83a941edc7700f45cda287212d9ad5/src/resp.rs#L36 可以把返回打出来看下登录的时候有没有获取到 https://github.com/PinkD/corplink-rs/blob/dce4e1f59f83a941edc7700f45cda287212d9ad5/src/client.rs#L416-L416

In most cases, we only need to configure the route table the server provided. If not, maybe your adminstrator does not configure the server rightly. In this case, you can...

The wireguard has a config named `allowed_ips` which means if the target ip is not in allowed ips, wg will drop the packet. So to support manual route config, we...

timeout 就是单纯超时,可以 `curl -vv https://xx.xx.xx:5473/vpn/ping` 看下通不通。不通就可能是网络有问题连不上或者服务器挂了或者根本就不是这个服务器。具体问题需要具体排查