summaryrefslogtreecommitdiff
path: root/pkg/bitmask
diff options
context:
space:
mode:
authorkali <kali@win>2020-10-30 22:11:20 +0100
committerkali kaneko (leap communications) <kali@leap.se>2020-11-04 12:38:45 +0100
commitd3c7abb7eba8658667b0962cacc6ecd3526fc792 (patch)
tree442ae1703e9ddc03fa11c08d43fc48d893e3ac32 /pkg/bitmask
parentb04607a7d97d59c09ac563fd257930d7ce406ad5 (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/bitmask')
-rw-r--r--pkg/bitmask/autostart_win.go23
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{}
+}