mirror of
https://gitee.com/willfree/min-vpn-client_v2.git
synced 2026-06-05 21:29:29 +08:00
VPN握手调试:服务器给的tun地址没有掩码长度,这里默认为24
This commit is contained in:
@@ -473,7 +473,8 @@ public class MINVpnConnection implements Runnable{
|
||||
builder.setMtu(Short.parseShort(fields[1]));
|
||||
break;
|
||||
case 'a':
|
||||
builder.addAddress(fields[1], Integer.parseInt(fields[2]));
|
||||
builder.addAddress(fields[1], 24);
|
||||
// builder.addAddress(fields[1], Integer.parseInt(fields[2]));
|
||||
System.out.println("handshake ip: " + fields[1]);
|
||||
allocatedAddress = fields[1];
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user