Skip to content

Commit

Permalink
fix tray merge
Browse files Browse the repository at this point in the history
  • Loading branch information
parvit committed Sep 10, 2024
1 parent 8572592 commit 0ccf01c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion qpep-tray/notify/notify_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package notify
import (
"fmt"
platformnotify "github.com/martinlindhe/notify"
"github.com/parvit/qpep/logger"
"github.com/parvit/qpep/shared/logger"
"github.com/project-faster/dialog"
)

Expand Down
2 changes: 1 addition & 1 deletion qpep-tray/notify/notify_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package notify

import (
"fmt"
"github.com/parvit/qpep/logger"
"github.com/parvit/qpep/qpep-tray/notify/toast"
"github.com/parvit/qpep/shared/logger"
"github.com/project-faster/dialog"
)

Expand Down
8 changes: 6 additions & 2 deletions workers/client/client_impl_linux.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
package client

import (
"github.com/parvit/qpep/shared/configuration"
"github.com/parvit/qpep/workers/gateway"
)

// initDiverter method wraps the logic for initializing the windiverter engine, returns true if the diverter
// succeeded initialization and false otherwise
func initDiverter() bool {
return shared.SetConnectionDiverter(true, "", shared.QPepConfig.ListenHost, 0, shared.QPepConfig.ListenPort, 0, 0)
return gateway.SetConnectionDiverter(true, "",
configuration.QPepConfig.Client.LocalListeningAddress, 0,
configuration.QPepConfig.Client.LocalListenPort, 0,
0)
}

// stopDiverter method wraps the calls for stopping the diverter
func stopDiverter() {
shared.SetConnectionDiverter(false, "", "", 0, 0, 0, 0)
gateway.SetConnectionDiverter(false, "", "", 0, 0, 0, 0)
}

// initProxy method wraps the calls for initializing the proxy
Expand Down

0 comments on commit 0ccf01c

Please sign in to comment.