Skip to content

Commit

Permalink
remove outdated todo
Browse files Browse the repository at this point in the history
  • Loading branch information
sechmann committed Nov 16, 2023
1 parent c4c72d3 commit 93b513f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions internal/wireguard/network_configurer.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,17 +162,12 @@ func (nc *networkConfigurer) ApplyWireGuardConfig(peers []Peer) error {
return fmt.Errorf("write WireGuard config: %w", err)
}

// err = configFile.Sync()
// if err != nil {
// return fmt.Errorf("make sure contents are written to disk: %w", err)
// }

err = configFile.Close()
if err != nil {
return fmt.Errorf("close WireGuard config: %w", err)
}

time.Sleep(1 * time.Second) // TODO: switch to configFile.Sync() commented out above
time.Sleep(1 * time.Second)
cmd := exec.Command("wg", "syncconf", nc.wireguardInterface, nc.configPath)
nc.log.Debugln(cmd.String())

Expand Down

0 comments on commit 93b513f

Please sign in to comment.