Skip to content

Commit

Permalink
Merge pull request #5
Browse files Browse the repository at this point in the history
Release v0.1.4
  • Loading branch information
bsrinivas8687 authored Jun 27, 2021
2 parents 9bb52dd + 083573f commit 8c11bbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions services/wireguard/wireguard_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import (
"fmt"
"os"
"strings"

"github.com/alessio/shellescape"
)

func (w *WireGuard) PreUp() error {
Expand All @@ -13,9 +15,7 @@ func (w *WireGuard) PreUp() error {

func (w *WireGuard) RealInterface() (string, error) {
nameFile, err := os.Open(
fmt.Sprintf("/var/run/wireguard/%s.name"),
shellescape.Quote(w.cfg.Name),
)
fmt.Sprintf("/var/run/wireguard/%s.name", shellescape.Quote(w.cfg.Name)))
if err != nil {
return "", err
}
Expand Down

0 comments on commit 8c11bbc

Please sign in to comment.