Skip to content

Commit 8f029b9

Browse files
committed
- updating the script to add the country code before the the 403
1 parent bb51441 commit 8f029b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,13 @@ set \$realip \$remote_addr;
204204
if (\$http_x_forwarded_for ~ "^(\d+\.\d+\.\d+\.\d+)") {
205205
set \$realip \$1;
206206
}
207+
set \$country_code \$geoip2_data_country_code;
207208
208209
# check if the country is allowed and deny
209210
if (\$allowed_country = no) {
210211
return 403;
211212
}
212213
213-
set \$country_code \$geoip2_data_country_code;
214214
EOF
215215
/refresh_geoip.sh&
216216
msg "Enabling the geoip refresh background job"

0 commit comments

Comments
 (0)