Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
43611bb5
Commit
43611bb5
authored
Jun 14, 2023
by
Manuel Buil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the error report
Signed-off-by:
Manuel Buil
<
mbuil@suse.com
>
parent
55db9b18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
vpn.go
pkg/vpn/vpn.go
+4
-4
No files found.
pkg/vpn/vpn.go
View file @
43611bb5
...
...
@@ -2,13 +2,13 @@ package vpn
import
(
"encoding/json"
"errors"
"fmt"
"net"
"strings"
"github.com/k3s-io/k3s/pkg/util"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
)
...
...
@@ -44,11 +44,11 @@ func StartVPN(vpnAuthConfigFile string) error {
logrus
.
Infof
(
"Starting VPN: %s"
,
authInfo
.
Name
)
switch
authInfo
.
Name
{
case
"tailscale"
:
outpt
,
err
:=
util
.
ExecCommand
(
"tailscale"
,
[]
string
{
"up"
,
"--authkey"
,
authInfo
.
JoinKey
,
"--reset"
})
outp
u
t
,
err
:=
util
.
ExecCommand
(
"tailscale"
,
[]
string
{
"up"
,
"--authkey"
,
authInfo
.
JoinKey
,
"--reset"
})
if
err
!=
nil
{
return
err
return
err
ors
.
Wrap
(
err
,
"tailscale up failed: "
+
output
)
}
logrus
.
Debugf
(
"Output from tailscale up: %v"
,
outpt
)
logrus
.
Debugf
(
"Output from tailscale up: %v"
,
outp
u
t
)
return
nil
default
:
return
fmt
.
Errorf
(
"Requested VPN: %s is not supported. We currently only support tailscale"
,
authInfo
.
Name
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment