SWAG-Real-IP: Fix bug if networking is not working

It would produce a malformed line, stopping nginx from running if it failed to curl the list
This commit is contained in:
Roxedus
2021-01-21 16:52:23 +01:00
parent e8c5c40968
commit c49baad276
2 changed files with 10 additions and 3 deletions
+7 -1
View File
@@ -20,4 +20,10 @@ real_ip_recursive on;
include /config/nginx/cf_real-ip.conf;
```
I also recommend including your docker-network as a valid ip `set_real_ip_from 172.17.0.0/16;` in the snippet above.
~~I also recommend including your docker-network as a valid ip `set_real_ip_from 172.17.0.0/16;` in the snippet above.~~
This mod now also *tries* to set the real ip from the default route in the contaier.
## Versions
* **21.01.21:** - Fix bug when mod runs before internet-access.