Commit graph

5 commits

Author SHA1 Message Date
Martin Hebnes Pedersen
441fda35c4 Graceful shutdown through context cancellation
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
2022-02-20 14:48:29 +01:00
Chris Keller
e68850056e Fix some Go linter errors
* Replace(..., -1) with ReplaceAll
* Variable names hiding packages
* Error messages start with lowercase and no end punctuation
* Don't `defer` in a loop
* Etc.
2021-08-20 21:35:21 +02:00
Martin Hebnes Pedersen
7ba0bc91c7 Switch to spf13's pflag fork
This fork supports --flag foo as well as --flag=foo.

Closes #30
2016-02-17 19:30:59 +01:00
Martin Hebnes Pedersen
8d44ea3330 cmd/wl2k: Cleanup of initialization code 2015-07-29 19:33:04 +02:00
Martin Hebnes Pedersen
8e97f53c26 cmd/wl2k: Switch to git style command line flags.
This new command style hopefully makes usage easier and
clearer. Usage of connect has been improved.

It is no longer possible to run http server while in
interactive mode.
2015-06-18 20:48:02 +02:00