Age | Commit message (Collapse) | Author |
|
two things happen differently in osx:
- call to systray.Quit() halts the program (so if called directly, none
of the deferred functions that we use for cleanup get to
execute)
- systray.Run() blocks (so after loop returns, the main run.Run() function
did not get to receive the boolean through the finishedCh channel.
proper shutdown is therefore fixed here by moving the call to
systray.Quit() to a goroutine that executes when the initialize()
function calls all the deferred functions.
we need to revisit this in case we want to break the main select loop
for a reson other than successfully terminating the program.
|
|
|
|
|
|
|
|
Before finishing the main thread let's wait for the finish of the
bitmask/pid/... tear down. So the firewall gets down when you ctrl-c.
- Resolves: #142
|
|
- Resolves: #141
|
|
When there was no configuration file the 'conf.StartVPN' was set tu
false. Let's set it properly even if there is no config file.
- Resolves: #128
|
|
|
|
Rename the icon to icon.svg/icon.ico instead of having the name of the
app in it.
- Resolves: #98
|
|
|
|
|
|
|
|
The -start-vpn flag can be set to on or off to turn the vpn on or off
just after launching bitmask-vpn. So it doesn't depend on the status of
the vpn of the last run.
- Resolves: #114
|
|
Make possible to disable the autostart configuration for the next run. I
can be done by configuring "DisableAustostart" to true in the
systra.json or by passing the '-disable-autostart' flag to the binary.
To make that possible I have rework how the Config struct work
separating the file configuration with the runtime configuration.
- Resolves: #100
|
|
Let's send the notification to another goroutine.
- Resolves: #112
|
|
- Resolves: #110
|
|
|
|
- Resolves: #106
|
|
|
|
|
|
Let's use a more structured folder system:
https://github.com/golang-standards/project-layout
- Resolves: #99
|