small fixes

This commit is contained in:
Alireza Ahmadi
2024-01-11 01:51:12 +01:00
parent d36118fd95
commit f286080edd
2 changed files with 2 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ jobs:
unzip Xray-linux-arm32-v7a.zip unzip Xray-linux-arm32-v7a.zip
rm -f Xray-linux-arm32-v7a.zip rm -f Xray-linux-arm32-v7a.zip
fi fi
rm -f geoip.dat geosite.dat geoip_IR.dat geosite_IR.dat geoip_VN.dat geosite_VN.dat rm -f geoip.dat geosite.dat geoip_IR.dat geosite_IR.dat
wget https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat wget https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat
wget https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat wget https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat
wget -O geoip_IR.dat https://github.com/chocolate4u/Iran-v2ray-rules/releases/latest/download/geoip.dat wget -O geoip_IR.dat https://github.com/chocolate4u/Iran-v2ray-rules/releases/latest/download/geoip.dat

View File

@@ -985,7 +985,7 @@ Outbound.WireguardSettings.Peer = class extends CommonClass {
return { return {
publicKey: this.publicKey, publicKey: this.publicKey,
preSharedKey: this.psk.length>0 ? this.psk : undefined, preSharedKey: this.psk.length>0 ? this.psk : undefined,
allowedIPs: this.allowedIPs ? this.allowedIPs.split(",") : undefined, allowedIPs: this.allowedIPs ? this.allowedIPs : undefined,
endpoint: this.endpoint, endpoint: this.endpoint,
keepAlive: this.keepAlive?? undefined, keepAlive: this.keepAlive?? undefined,
}; };