From ac48ac3c94e31beb4a5b9c1a31c39919fcde413d Mon Sep 17 00:00:00 2001 From: Neo_Chen Date: Wed, 29 Apr 2020 16:25:46 +0800 Subject: [PATCH] DNS: generator: up --- scripts/dns-reverse-generator.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dns-reverse-generator.sh b/scripts/dns-reverse-generator.sh index aa2cfed..987cddf 100755 --- a/scripts/dns-reverse-generator.sh +++ b/scripts/dns-reverse-generator.sh @@ -46,7 +46,7 @@ for i in *; do print_record "$downstream_ip" "$UPSTREAM.$DOWNSTREAM.tun30.neo." ) >> "$TUN30_TEMP" elif [ "$TYPE" = "PTP" ]; then - i="${i/PP,/}" + i="${i/PTP,/}" upstream_ip="${i%~*}" downstream_ip="${i#*~}"