I was getting an error when trying to disable IPv6 support because the DB wasn't allowing the subnet to be null however the address was able to be null. Should be good now.
Not every server config needs a PostUp or PostDown so I added an if statement to not include them if the values entered in the web interface are blank.
Having the DNS parameter blank (e.g. "DNS = ") will cause import errors in the Android app using the QR Code. I've added an if statement that checks if the DNS field has been populated. If so then it will write out the whole "DNS = x.x.x.x". If not then it will not be included at all.
When main.py initializes the subprocess returns an output of 'No such
device' but it doesn't throw any exception, for some reason...?
So, the output was of course returned to the is_running process and
since it wasn't "None" it though the interface was in the 'running'
state.
The server interface wasn't updated in the database when it got stopped.
Which led to 'is_running' was always set to true, if the server has been
started once.
Also fixed a copy-paste issue, which didn't affect the code
When main.py initializes the subprocess returns an output of 'No such
device' but it doesn't throw any exception, for some reason...?
So, the output was of course returned to the is_running process and
since it wasn't "None" it though the interface was in the 'running'
state.
The server interface wasn't updated in the database when it got stopped.
Which led to 'is_running' was always set to true, if the server has been
started once.
Also fixed a copy-paste issue, which didn't affect the code