diff options
author | kali <kali@win> | 2020-10-30 22:11:20 +0100 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2020-11-04 12:38:45 +0100 |
commit | d3c7abb7eba8658667b0962cacc6ecd3526fc792 (patch) | |
tree | 442ae1703e9ddc03fa11c08d43fc48d893e3ac32 /pkg | |
parent | b04607a7d97d59c09ac563fd257930d7ce406ad5 (diff) |
[bug] remove debug console in windows
squashed in this commit: reintroduce the dummy autostart_win implementation that was
removed by mistake. I did not manage to get autostart working in
windows, this is pending to be re-worked. see https://0xacab.org/leap/bitmask-vpn/-/issues/389
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/bitmask/autostart_win.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pkg/bitmask/autostart_win.go b/pkg/bitmask/autostart_win.go new file mode 100644 index 0000000..51ac0cd --- /dev/null +++ b/pkg/bitmask/autostart_win.go @@ -0,0 +1,23 @@ +// +build windows +package bitmask + +// Workaround for broken autostart package on windows. + +type DummyAutostart struct{} + +func (a *DummyAutostart) Disable() error { + return nil +} + +func (a *DummyAutostart) Enable() error { + return nil +} + +type Autostart interface { + Disable() error + Enable() error +} + +func NewAutostart(appName string, iconPath string) Autostart { + return &DummyAutostart{} +} |