summaryrefslogtreecommitdiff
path: root/pkg/systray/run.go
AgeCommit message (Collapse)Author
2019-09-08[bug] exit cleanly in osxKali Kaneko (leap communications)
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.
2019-08-16[feat] be able to use obfs4Ruben Pollan
2019-06-13[bug] wait for tear downRuben Pollan
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
2019-06-13[feat] check if polkit is running and launch it if possibleRuben Pollan
- Resolves: #141
2019-02-04[feat] Add -start-vpn flagRuben Pollan
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
2019-02-04[feat] add -disable-autostart flag and configRuben Pollan
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
2019-01-24[bug] wait until the systray is initalized to start the systray loopRuben Pollan
- Resolves: #106
2019-01-17[refactor] rename the imports into bitmask-vpnRuben Pollan
2019-01-15[feat] move provider configuration into a set of constantsRuben Pollan
2019-01-15[feat] Reorganize codeRuben Pollan
Let's use a more structured folder system: https://github.com/golang-standards/project-layout - Resolves: #99