@@ -3,12 +3,13 @@ package main
3
3
import (
4
4
"flag"
5
5
"fmt"
6
+ "log"
7
+ "os"
8
+
6
9
"github.com/go-logr/stdr"
7
10
"github.com/jodevsa/wireguard-operator/internal/iptables"
8
11
"github.com/jodevsa/wireguard-operator/pkg/agent"
9
12
"github.com/jodevsa/wireguard-operator/pkg/wireguard"
10
- "log"
11
- "os"
12
13
)
13
14
14
15
func main () {
@@ -23,42 +24,42 @@ func main() {
23
24
flag .StringVar (& wgUserspaceImplementationFallback , "wg-userspace-implementation-fallback" , "wireguard-go" , "The userspace implementation of wireguard to fallback to" )
24
25
flag .IntVar (& wireguardListenPort , "wg-listen-port" , 51820 , "the UDP port wireguard is listening on" )
25
26
flag .IntVar (& verbosity , "v" , 1 , "the verbosity level" )
26
- flag .BoolVar (& wgUseUserspaceImpl , "wg-use-userspace-implementation" , false , "Use userspace implementation" )
27
+ flag .BoolVar (& wgUseUserspaceImpl , "wg-use-userspace-implementation" , true , "Use userspace implementation" )
27
28
flag .Parse ()
28
29
29
30
println (fmt .Sprintf (
30
- `
31
- .:::::::::::::::::::::::::...::::::::::::::::::::.
32
- .::::::::::::::::::::.:^7J5PBGY!^::::::::::::::::::::.
33
- :::::::::::::::::::::~?J??5&@@@@@&G!~~~::::::::::::::::. WG Agent Configuration
34
- ::::::::::::::::::::::^7&@@@@@@@@@@@@&&&G^:::::::::::::::. ------------------------------------------
35
- .::::::::::::::::::::::!J#@@@@@@@BBBGPPG7:::::::::::::::::. wg-iface: %s
36
- .:::::::::::::::::::::^?Y5#@@@@@@5^...::::::::::::::::::::: state: %s
37
- .::::::::::::::::::::::..:!7Y#@@@@@#Y~:.::::::::::::::::::. wg-listen-port: %d
38
- .:::::::::::::::::::.:^!?JYYJ?JG&@@@@@#7::::::::::::::::::. wg-use-userspace-implementation: %v
39
- .:::::::::::::::::.^J#@@@@@@@@@&#B&@@@@@G:::::::::::::::::. wg-userspace-implementation-fallback: %s
40
- .:::::::::::::::::J@@@@@@@@@@@@@@@&G@@@@@J.:::::::::::::::.
41
- .::::::::::::::::5@@@@@#?~~~7P@@@@@&B@@@@P.:::::::::::::::.
42
- .:::::::::::::::^@@@@@P..::::.~@@@@B&@@@@!::::::::::::::::.
43
- .:::::::::::::::~@@@@@J.::::::^@@@#&@@@@P:::::::::::::::::.
44
- .::::::::::::::::B@@@@@P!^:.:~G&&&@@@@@5::::::::::::::::::.
45
- .:::::::::::::::::G@@@@@&#BB&@@@@@@@@B~.::::::::::::::::::.
46
- .::::::::::::::::..~G&&&@@@@@@@@@&&&&&P^.:::::::::::::::::.
47
- .::::::::::::::.:~YGGY&@@@@@&GY7JB@@@@@@7:::::::::::::::::.
48
- .::::::::::::::?&@@@B&@@@@#!:..:::~B@@@@@~::::::::::::::::.
49
- .:::::::::::::J&#P5?5@@@@@:.::::::::&@@@@5.:::::::::::::::.
50
- .:::::::::::::^:....J@@@@@~.::::::.^@@@@@5.::::::::::::::::
51
- .::::::::::::::::::::&@@@@@Y~::::^J&@@@@&^::::::::::::::::.
52
- ::::::::::::::::::::^B@@@@@@&##&@@@@@@#~:::::::::::::::::.
53
- :::::::::::::::::::::7B@@@@@@@@@@@@#?::::::::::::::::::.
54
- .::::::::::::::::::::.^7YGB##BGY7^:.:::::::::::::::::.
55
- .:::::::::::::::::::::..::::..::::::::::::::::::..
56
- .....:...............................:.....
31
+ `
32
+ .:::::::::::::::::::::::::...::::::::::::::::::::.
33
+ .::::::::::::::::::::.:^7J5PBGY!^::::::::::::::::::::.
34
+ :::::::::::::::::::::~?J??5&@@@@@&G!~~~::::::::::::::::. WG Agent Configuration
35
+ ::::::::::::::::::::::^7&@@@@@@@@@@@@&&&G^:::::::::::::::. ------------------------------------------
36
+ .::::::::::::::::::::::!J#@@@@@@@BBBGPPG7:::::::::::::::::. wg-iface: %s
37
+ .:::::::::::::::::::::^?Y5#@@@@@@5^...::::::::::::::::::::: state: %s
38
+ .::::::::::::::::::::::..:!7Y#@@@@@#Y~:.::::::::::::::::::. wg-listen-port: %d
39
+ .:::::::::::::::::::.:^!?JYYJ?JG&@@@@@#7::::::::::::::::::. wg-use-userspace-implementation: %v
40
+ .:::::::::::::::::.^J#@@@@@@@@@&#B&@@@@@G:::::::::::::::::. wg-userspace-implementation-fallback: %s
41
+ .:::::::::::::::::J@@@@@@@@@@@@@@@&G@@@@@J.:::::::::::::::.
42
+ .::::::::::::::::5@@@@@#?~~~7P@@@@@&B@@@@P.:::::::::::::::.
43
+ .:::::::::::::::^@@@@@P..::::.~@@@@B&@@@@!::::::::::::::::.
44
+ .:::::::::::::::~@@@@@J.::::::^@@@#&@@@@P:::::::::::::::::.
45
+ .::::::::::::::::B@@@@@P!^:.:~G&&&@@@@@5::::::::::::::::::.
46
+ .:::::::::::::::::G@@@@@&#BB&@@@@@@@@B~.::::::::::::::::::.
47
+ .::::::::::::::::..~G&&&@@@@@@@@@&&&&&P^.:::::::::::::::::.
48
+ .::::::::::::::.:~YGGY&@@@@@&GY7JB@@@@@@7:::::::::::::::::.
49
+ .::::::::::::::?&@@@B&@@@@#!:..:::~B@@@@@~::::::::::::::::.
50
+ .:::::::::::::J&#P5?5@@@@@:.::::::::&@@@@5.:::::::::::::::.
51
+ .:::::::::::::^:....J@@@@@~.::::::.^@@@@@5.::::::::::::::::
52
+ .::::::::::::::::::::&@@@@@Y~::::^J&@@@@&^::::::::::::::::.
53
+ ::::::::::::::::::::^B@@@@@@&##&@@@@@@#~:::::::::::::::::.
54
+ :::::::::::::::::::::7B@@@@@@@@@@@@#?::::::::::::::::::.
55
+ .::::::::::::::::::::.^7YGB##BGY7^:.:::::::::::::::::.
56
+ .:::::::::::::::::::::..::::..::::::::::::::::::..
57
+ .....:...............................:.....
57
58
58
- / \ / \/ _____/ / _ \ / ___\ ____ _____/ |_
59
- \ \/\/ / \ ___ / /_\ \ / /_/ _/ __ \ / \ __\
60
- \ /\ \_\ \ / | \\___ /\ ___/| | | |
61
- \__/\ / \______ / \____|__ /_____/ \___ |___| |__|
59
+ / \ / \/ _____/ / _ \ / ___\ ____ _____/ |_
60
+ \ \/\/ / \ ___ / /_\ \ / /_/ _/ __ \ / \ __\
61
+ \ /\ \_\ \ / | \\___ /\ ___/| | | |
62
+ \__/\ / \______ / \____|__ /_____/ \___ |___| |__|
62
63
\/ \/ \/ \/ \/
63
64
` , iface , configFilePath , wireguardListenPort , wgUseUserspaceImpl , wgUserspaceImplementationFallback ))
64
65
0 commit comments