forked from WireGuard/wireguard-go
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,20 +46,20 @@ func warning() { | |
return | ||
} | ||
|
||
fmt.Fprintln(os.Stderr, "┌──────────────────────────────────────────────────────┐") | ||
fmt.Fprintln(os.Stderr, "│ │") | ||
fmt.Fprintln(os.Stderr, "│ Running wireguard-go is not required because this │") | ||
fmt.Fprintln(os.Stderr, "│ kernel has first class support for WireGuard. For │") | ||
fmt.Fprintln(os.Stderr, "│ information on installing the kernel module, │") | ||
fmt.Fprintln(os.Stderr, "│ please visit: │") | ||
fmt.Fprintln(os.Stderr, "│ https://www.wireguard.com/install/ │") | ||
fmt.Fprintln(os.Stderr, "│ │") | ||
fmt.Fprintln(os.Stderr, "└──────────────────────────────────────────────────────┘") | ||
fmt.Fprintln(os.Stderr, "┌──────────────────────────────────────────────────────────────┐") | ||
fmt.Fprintln(os.Stderr, "│ │") | ||
fmt.Fprintln(os.Stderr, "│ Running amneziawg-go is not required because this │") | ||
fmt.Fprintln(os.Stderr, "│ kernel has first class support for AmneziaWG. For │") | ||
fmt.Fprintln(os.Stderr, "│ information on installing the kernel module, │") | ||
fmt.Fprintln(os.Stderr, "│ please visit: │") | ||
fmt.Fprintln(os.Stderr, "| https://github.com/amnezia-vpn/amneziawg-linux-kernel-module │") | ||
fmt.Fprintln(os.Stderr, "│ │") | ||
fmt.Fprintln(os.Stderr, "└──────────────────────────────────────────────────────────────┘") | ||
} | ||
|
||
func main() { | ||
if len(os.Args) == 2 && os.Args[1] == "--version" { | ||
fmt.Printf("wireguard-go v%s\n\nUserspace WireGuard daemon for %s-%s.\nInformation available at https://www.wireguard.com.\nCopyright (C) Jason A. Donenfeld <[email protected]>.\n", Version, runtime.GOOS, runtime.GOARCH) | ||
fmt.Printf("amneziawg-go v%s\n\nUserspace AmneziaWG daemon for %s-%s.\nInformation available at https://amnezia.org\n", Version, runtime.GOOS, runtime.GOARCH) | ||
return | ||
} | ||
|
||
|
@@ -145,7 +145,7 @@ func main() { | |
fmt.Sprintf("(%s) ", interfaceName), | ||
) | ||
|
||
logger.Verbosef("Starting wireguard-go version %s", Version) | ||
logger.Verbosef("Starting amneziawg-go version %s", Version) | ||
|
||
if err != nil { | ||
logger.Errorf("Failed to create TUN device: %v", err) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters