Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
gost
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
gost
Commits
2707a8f0
Commit
2707a8f0
authored
May 23, 2020
by
ginuerzh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v2.11.1
parent
d11f8248
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
gost.go
gost.go
+1
-1
snapcraft.yaml
snapcraft.yaml
+1
-1
ssh.go
ssh.go
+2
-0
No files found.
gost.go
View file @
2707a8f0
...
@@ -20,7 +20,7 @@ import (
...
@@ -20,7 +20,7 @@ import (
)
)
// Version is the gost version.
// Version is the gost version.
const
Version
=
"2.11.
0
"
const
Version
=
"2.11.
1
"
// Debug is a flag that enables the debug log.
// Debug is a flag that enables the debug log.
var
Debug
bool
var
Debug
bool
...
...
snapcraft.yaml
View file @
2707a8f0
name
:
gost
name
:
gost
type
:
app
type
:
app
version
:
'
2.11.
0
'
version
:
'
2.11.
1
'
title
:
GO Simple Tunnel
title
:
GO Simple Tunnel
summary
:
A simple security tunnel written in golang
summary
:
A simple security tunnel written in golang
description
:
|
description
:
|
...
...
ssh.go
View file @
2707a8f0
...
@@ -31,6 +31,7 @@ var (
...
@@ -31,6 +31,7 @@ var (
errSessionDead
=
errors
.
New
(
"session is dead"
)
errSessionDead
=
errors
.
New
(
"session is dead"
)
)
)
// ParseSSHKeyFile parses ssh key file.
func
ParseSSHKeyFile
(
fp
string
)
(
ssh
.
Signer
,
error
)
{
func
ParseSSHKeyFile
(
fp
string
)
(
ssh
.
Signer
,
error
)
{
key
,
err
:=
ioutil
.
ReadFile
(
fp
)
key
,
err
:=
ioutil
.
ReadFile
(
fp
)
if
err
!=
nil
{
if
err
!=
nil
{
...
@@ -39,6 +40,7 @@ func ParseSSHKeyFile(fp string) (ssh.Signer, error) {
...
@@ -39,6 +40,7 @@ func ParseSSHKeyFile(fp string) (ssh.Signer, error) {
return
ssh
.
ParsePrivateKey
(
key
)
return
ssh
.
ParsePrivateKey
(
key
)
}
}
// ParseSSHAuthorizedKeysFile parses ssh Authorized Keys file.
func
ParseSSHAuthorizedKeysFile
(
fp
string
)
(
map
[
string
]
bool
,
error
)
{
func
ParseSSHAuthorizedKeysFile
(
fp
string
)
(
map
[
string
]
bool
,
error
)
{
authorizedKeysBytes
,
err
:=
ioutil
.
ReadFile
(
fp
)
authorizedKeysBytes
,
err
:=
ioutil
.
ReadFile
(
fp
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
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