mirror of
https://github.com/masterking32/MasterHttpRelayVPN.git
synced 2026-05-18 23:54:37 +03:00
IPv4 for VPS exit node bash file
This commit is contained in:
@@ -202,7 +202,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# ─────────────────────────────────────────────────────────────────────────────
|
# ─────────────────────────────────────────────────────────────────────────────
|
||||||
PUBLIC_IP=$(curl -sf --max-time 5 https://ifconfig.me 2>/dev/null || echo "YOUR-VPS-IP")
|
PUBLIC_IP=$(curl -sf --max-time 5 https://ipv4.ifconfig.me 2>/dev/null || echo "YOUR-VPS-IP")
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "${BOLD}${GREEN}============================================================${NC}"
|
echo -e "${BOLD}${GREEN}============================================================${NC}"
|
||||||
|
|||||||
@@ -282,7 +282,6 @@ def main():
|
|||||||
if listen_host == "127.0.0.1":
|
if listen_host == "127.0.0.1":
|
||||||
config["listen_host"] = "0.0.0.0"
|
config["listen_host"] = "0.0.0.0"
|
||||||
listen_host = "0.0.0.0"
|
listen_host = "0.0.0.0"
|
||||||
log.info("LAN sharing enabled — listening on all interfaces")
|
|
||||||
|
|
||||||
# If either explicit LAN sharing is enabled or we bind to all interfaces,
|
# If either explicit LAN sharing is enabled or we bind to all interfaces,
|
||||||
# print concrete IPv4 addresses users can use on other devices.
|
# print concrete IPv4 addresses users can use on other devices.
|
||||||
|
|||||||
Reference in New Issue
Block a user