By doing graceful shutdown, we're able to properly close all of the open
resources such as modem connections and ongoing sessions.
This will allow transport drivers controlling stateful TNCs (e.g.
ptc-go) to recover the initial TNC state before termination.
Resolves#314
* Replace(..., -1) with ReplaceAll
* Variable names hiding packages
* Error messages start with lowercase and no end punctuation
* Don't `defer` in a loop
* Etc.
New config field service_codes takes an array of strings, each string
should be a valid service code that is used when updating rmslist.
I've extended the rmslist cache to support this. We now have multiple
cache files, one for each combination of service codes.
Closes#162
This change was announced by the WDT after they migrated to the new
AWS 'cloud' CMS. The old hostname (server.winlink.org) is expected to
be operational for at least one year.
In addition to changing the config defaults, this commit includes a
(temporary) function that will rewrite user's config to replace the
old hostname.
Closes#104