Commit Graph

5 Commits

Author SHA1 Message Date
kobaltgit
ec972b17e4 fix: Ultimate UDP call fix with host networking
- Switched container to --network host to eliminate NAT-related UDP call issues.
- Fixed availability by explicitly binding to 0.0.0.0 instead of hybrid :: address.
- Retained smart port selection logic and ad-free environment.
- Verified as the most stable configuration for MTProxy calls.
2026-04-05 23:49:12 +03:00
kobaltgit
8980f74b26 modified: install.sh 2026-04-05 23:34:33 +03:00
kobaltgit
272e712eaa fix: Resolve proxy connectivity and port selection issues
- Fixed port variable pollution by redirecting info messages to stderr.
- Switched Docker to --network host for maximum compatibility.
- Improved UDP/IPv6 accessibility by binding to all interfaces (::).
- Verified compatibility with existing server panels (Hiddify/Nginx).
2026-04-05 23:29:13 +03:00
kobaltgit
89825de812 find_smart_port() {
local port=443
    if ss -tlnp | grep -qE ":${port}\b"; then
        echo -e "  ${YELLOW}ℹ Порт 443 занят (Hiddify/Nginx). Пробую 8443...${NC}" >&2
        port=8443
        if ss -tlnp | grep -qE ":${port}\b"; then
            port=$(( (RANDOM % 10000) + 20000 ))
            echo -e "  ${YELLOW}ℹ Порт 8443 тоже занят. Выбран случайный: $port${NC}" >&2
        fi
    fi
    echo "$port"
}
2026-04-05 23:10:37 +03:00
kobaltgit
9482cfe7f6 feat: Initial commit for SwiftGram - Smart MTProxy Manager 2026-04-05 22:08:46 +03:00