SiloCityLabs / lochnas

Docker configuration for all-in-one nas setup
https://lochnas.com
GNU General Public License v3.0
51 stars 3 forks source link

Startup IP Check #40

Closed ldrrp closed 2 years ago

ldrrp commented 2 years ago

Problem

When the ip has changed and the server starts it tries to check against the old ip address in the config.yml not knowing it has changed.

Solution

IP check on startup for ddns. If not correct we update it and notify user as this will likely fail ddns checks until it has propogated. This can be done by calling the existing ddns update function.

Configuration

- ip-check:
    - notification:
            enabled: true

Notify may be "true", "false" or "email" etc. Parsed as string. True will use server default.

Steps to Reproduce the Problem

  1. ./server.bin
ldrrp commented 2 years ago

added to start()