Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions marzban.sh
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ send_backup_to_telegram() {
return
fi

local server_ip=$(curl -s ifconfig.me || echo "Unknown IP")
local server_ip=$(curl -s4 ifconfig.me || echo "Unknown IP")
local latest_backup=$(ls -t "$APP_DIR/backup" | head -n 1)
local backup_path="$APP_DIR/backup/$latest_backup"

Expand Down Expand Up @@ -267,7 +267,7 @@ send_backup_to_telegram() {
send_backup_error_to_telegram() {
local error_messages=$1
local log_file=$2
local server_ip=$(curl -s ifconfig.me || echo "Unknown IP")
local server_ip=$(curl -s4 ifconfig.me || echo "Unknown IP")
local error_time=$(date "+%Y-%m-%d %H:%M:%S %Z")
local message="⚠️ *Backup Error Notification*\n"
message+="🌐 *Server IP*: \`${server_ip}\`\n"
Expand Down