[feature] Extract IP address from netif credit: @comicchang

This commit is contained in:
Timothy Miller
2023-02-15 16:14:22 -05:00
parent c135a7d343
commit cb7b1804cf
4 changed files with 92 additions and 38 deletions

View File

@@ -10,10 +10,12 @@ Access your home network remotely via a custom domain name without a static IP!
- 🔁 The Python runtime will re-use existing HTTP connections.
- 🗃️ Cloudflare API responses are cached to reduce API usage.
- 🤏 The Docker image is small and efficient.
- 0⃣ Zero dependencies.
- 0⃣ Zero weirdo dependencies.
- 💪 Supports all platforms.
- 🏠 Enables low cost self hosting to promote a more decentralized internet.
- 🔒 Zero-log IP provider ([cdn-cgi/trace](https://www.cloudflare.com/cdn-cgi/trace))
- 🧑‍🚀 Supports NAT and multiple network interfaces.
- 🔒 HTTP [(Zero-log IP provider)](https://www.cloudflare.com/cdn-cgi/trace)
- 💻 [Netif](https://pypi.org/project/netifaces/): `ppp0`, `eth0`, `wlan0`, etc.
- 👐 GPL-3.0 License. Open source for open audits.
## 💯 Complete Support of Domain Names, Subdomains, and IPv4 & IPv6
@@ -69,6 +71,15 @@ Some ISP provided modems only allow port forwarding over IPv4 or IPv6. In this c
"aaaa": true
```
### 🧑‍🚀 Method used for getting IP address
If you have multiple network interfaces, or if you are behind nat, you may need to enable alternative way to determine your IP address(es).
```json
"method": "netif",
"interface": "ppp0"
```
### 🎛️ Other values explained
```json
@@ -123,7 +134,9 @@ Do not include the base domain name in your `subdomains` config. Do not use the
"a": true,
"aaaa": true,
"purgeUnknownRecords": false,
"ttl": 300
"ttl": 300,
"method": "http",
"interface": ""
}
```
@@ -181,7 +194,10 @@ If you are using API Tokens, make sure the token used supports editing your zone
],
"a": true,
"aaaa": true,
"purgeUnknownRecords": false
"purgeUnknownRecords": false,
"ttl": 300,
"method": "http",
"interface": ""
}
```