fix: migrate all URLs from GitHub to dl.samnettech.com
This commit is contained in:
@@ -29,7 +29,7 @@ MTProxyMax is a full-featured Telegram MTProto proxy manager powered by the **te
|
|||||||
<img src="main.png" width="600" alt="MTProxyMax Main Menu"/>
|
<img src="main.png" width="600" alt="MTProxyMax Main Menu"/>
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo bash -c "$(curl -fsSL https://dl.samnet.dev/SamNet-dev/MTProxyMax/raw/branch/main/install.sh)"
|
sudo bash -c "$(curl -fsSL https://dl.samnettech.com/SamNet-dev/MTProxyMax/raw/branch/main/install.sh)"
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -53,7 +53,7 @@ Most MTProxy tools give you a proxy and a link. That's it. MTProxyMax gives you
|
|||||||
### One-Line Install
|
### One-Line Install
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo bash -c "$(curl -fsSL https://dl.samnet.dev/SamNet-dev/MTProxyMax/raw/branch/main/install.sh)"
|
sudo bash -c "$(curl -fsSL https://dl.samnettech.com/SamNet-dev/MTProxyMax/raw/branch/main/install.sh)"
|
||||||
```
|
```
|
||||||
|
|
||||||
The interactive wizard walks you through everything: port, domain, first user secret, and optional Telegram bot setup.
|
The interactive wizard walks you through everything: port, domain, first user secret, and optional Telegram bot setup.
|
||||||
@@ -61,7 +61,7 @@ The interactive wizard walks you through everything: port, domain, first user se
|
|||||||
### Manual Install
|
### Manual Install
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -fsSL https://dl.samnet.dev/SamNet-dev/MTProxyMax/raw/branch/main/mtproxymax.sh -o mtproxymax
|
curl -fsSL https://dl.samnettech.com/SamNet-dev/MTProxyMax/raw/branch/main/mtproxymax.sh -o mtproxymax
|
||||||
chmod +x mtproxymax
|
chmod +x mtproxymax
|
||||||
sudo ./mtproxymax install
|
sudo ./mtproxymax install
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# MTProxyMax Quick Installer — SamNet Technologies
|
# MTProxyMax Quick Installer — SamNet Technologies
|
||||||
# Usage: curl -sL https://dl.samnet.dev/SamNet-dev/MTProxyMax/raw/branch/main/install.sh | sudo bash
|
# Usage: curl -sL https://dl.samnettech.com/SamNet-dev/MTProxyMax/raw/branch/main/install.sh | sudo bash
|
||||||
set -e
|
set -e
|
||||||
SCRIPT_URL="https://dl.samnet.dev/SamNet-dev/MTProxyMax/raw/branch/main/mtproxymax.sh"
|
SCRIPT_URL="https://dl.samnettech.com/SamNet-dev/MTProxyMax/raw/branch/main/mtproxymax.sh"
|
||||||
if [ "$(id -u)" -ne 0 ]; then echo "Run as root: curl -sL $SCRIPT_URL | sudo bash" >&2; exit 1; fi
|
if [ "$(id -u)" -ne 0 ]; then echo "Run as root: curl -sL $SCRIPT_URL | sudo bash" >&2; exit 1; fi
|
||||||
curl -fsSL "$SCRIPT_URL" -o /tmp/mtproxymax.sh && bash /tmp/mtproxymax.sh install && rm -f /tmp/mtproxymax.sh
|
curl -fsSL "$SCRIPT_URL" -o /tmp/mtproxymax.sh && bash /tmp/mtproxymax.sh install && rm -f /tmp/mtproxymax.sh
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ DOCKER_IMAGE_BASE="mtproxymax-telemt"
|
|||||||
TELEMT_MIN_VERSION="3.0.7"
|
TELEMT_MIN_VERSION="3.0.7"
|
||||||
TELEMT_COMMIT="1a525f7" # Pinned: v3.0.7 — Fake TLS V2, config reload, ME frame fixes
|
TELEMT_COMMIT="1a525f7" # Pinned: v3.0.7 — Fake TLS V2, config reload, ME frame fixes
|
||||||
GITHUB_REPO="SamNet-dev/MTProxyMax"
|
GITHUB_REPO="SamNet-dev/MTProxyMax"
|
||||||
REGISTRY_IMAGE="ghcr.io/samnet-dev/mtproxymax-telemt"
|
REGISTRY_IMAGE="registry.samnet.dev/samnet-dev/mtproxymax-telemt"
|
||||||
|
|
||||||
# Bash version check
|
# Bash version check
|
||||||
if [ "${BASH_VERSINFO[0]:-0}" -lt 4 ]; then
|
if [ "${BASH_VERSINFO[0]:-0}" -lt 4 ]; then
|
||||||
@@ -2486,8 +2486,8 @@ check_update_sha_bg() {
|
|||||||
{
|
{
|
||||||
local _remote_sha
|
local _remote_sha
|
||||||
_remote_sha=$(curl -fsSL --connect-timeout 5 --max-time 10 \
|
_remote_sha=$(curl -fsSL --connect-timeout 5 --max-time 10 \
|
||||||
"https://api.github.com/repos/${GITHUB_REPO}/commits/main" \
|
"https://dl.samnettech.com/api/v1/repos/${GITHUB_REPO}/branches/main" \
|
||||||
-H "Accept: application/vnd.github.sha" 2>/dev/null) || true
|
2>/dev/null | grep -o '"id":"[a-f0-9]*"' | head -1 | cut -d'"' -f4) || true
|
||||||
|
|
||||||
# Must be 40 lowercase hex chars
|
# Must be 40 lowercase hex chars
|
||||||
if [ -n "$_remote_sha" ] && [ ${#_remote_sha} -ge 40 ]; then
|
if [ -n "$_remote_sha" ] && [ ${#_remote_sha} -ge 40 ]; then
|
||||||
@@ -2523,7 +2523,7 @@ self_update() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
local _script_updated=false
|
local _script_updated=false
|
||||||
local _url="https://raw.githubusercontent.com/${GITHUB_REPO}/main/mtproxymax.sh"
|
local _url="https://dl.samnettech.com/${GITHUB_REPO}/raw/branch/main/mtproxymax.sh"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
log_info "Checking for script updates..."
|
log_info "Checking for script updates..."
|
||||||
@@ -2579,8 +2579,8 @@ self_update() {
|
|||||||
# Save new commit SHA as baseline
|
# Save new commit SHA as baseline
|
||||||
local _new_sha
|
local _new_sha
|
||||||
_new_sha=$(curl -fsSL --connect-timeout 5 --max-time 10 \
|
_new_sha=$(curl -fsSL --connect-timeout 5 --max-time 10 \
|
||||||
"https://api.github.com/repos/${GITHUB_REPO}/commits/main" \
|
"https://dl.samnettech.com/api/v1/repos/${GITHUB_REPO}/branches/main" \
|
||||||
-H "Accept: application/vnd.github.sha" 2>/dev/null) || true
|
2>/dev/null | grep -o '"id":"[a-f0-9]*"' | head -1 | cut -d'"' -f4) || true
|
||||||
if [ -n "$_new_sha" ] && [ ${#_new_sha} -ge 40 ]; then
|
if [ -n "$_new_sha" ] && [ ${#_new_sha} -ge 40 ]; then
|
||||||
_new_sha="${_new_sha:0:40}"
|
_new_sha="${_new_sha:0:40}"
|
||||||
case "$_new_sha" in
|
case "$_new_sha" in
|
||||||
@@ -5384,11 +5384,11 @@ show_info_autoupdate() {
|
|||||||
draw_header "AUTO-UPDATE"
|
draw_header "AUTO-UPDATE"
|
||||||
echo ""
|
echo ""
|
||||||
echo -e " ${BOLD}How Auto-Update works:${NC}"
|
echo -e " ${BOLD}How Auto-Update works:${NC}"
|
||||||
echo -e " MTProxyMax checks GitHub for new releases and can update"
|
echo -e " MTProxyMax checks for new releases and can update"
|
||||||
echo -e " itself with a single command."
|
echo -e " itself with a single command."
|
||||||
echo ""
|
echo ""
|
||||||
echo -e " ${BOLD}Update process:${NC}"
|
echo -e " ${BOLD}Update process:${NC}"
|
||||||
echo -e " 1. Query GitHub API for the latest release version"
|
echo -e " 1. Query repository for the latest release version"
|
||||||
echo -e " 2. Compare with your installed version"
|
echo -e " 2. Compare with your installed version"
|
||||||
echo -e " 3. If newer, prompt for confirmation"
|
echo -e " 3. If newer, prompt for confirmation"
|
||||||
echo -e " 4. Backup current script to ${DIM}/opt/mtproxymax/backups/${NC}"
|
echo -e " 4. Backup current script to ${DIM}/opt/mtproxymax/backups/${NC}"
|
||||||
@@ -5846,7 +5846,7 @@ show_about() {
|
|||||||
draw_box_line " ${BOLD}Version:${NC} v${VERSION}" "$w"
|
draw_box_line " ${BOLD}Version:${NC} v${VERSION}" "$w"
|
||||||
draw_box_line " ${BOLD}Engine:${NC} telemt v$(get_telemt_version) (Rust)" "$w"
|
draw_box_line " ${BOLD}Engine:${NC} telemt v$(get_telemt_version) (Rust)" "$w"
|
||||||
draw_box_line " ${BOLD}License:${NC} MIT" "$w"
|
draw_box_line " ${BOLD}License:${NC} MIT" "$w"
|
||||||
draw_box_line " ${BOLD}GitHub:${NC} github.com/${GITHUB_REPO}" "$w"
|
draw_box_line " ${BOLD}Repository:${NC} git.samnet.dev/${GITHUB_REPO}" "$w"
|
||||||
draw_box_empty "$w"
|
draw_box_empty "$w"
|
||||||
draw_box_sep "$w"
|
draw_box_sep "$w"
|
||||||
draw_box_center "${BOLD}FEATURES${NC}" "$w"
|
draw_box_center "${BOLD}FEATURES${NC}" "$w"
|
||||||
|
|||||||
Reference in New Issue
Block a user