Skip to content

Commit

Permalink
v2.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ginuerzh committed May 23, 2020
1 parent d11f824 commit 2707a8f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gost.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
)

// Version is the gost version.
const Version = "2.11.0"
const Version = "2.11.1"

// Debug is a flag that enables the debug log.
var Debug bool
Expand Down
2 changes: 1 addition & 1 deletion snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: gost
type: app
version: '2.11.0'
version: '2.11.1'
title: GO Simple Tunnel
summary: A simple security tunnel written in golang
description: |
Expand Down
2 changes: 2 additions & 0 deletions ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ var (
errSessionDead = errors.New("session is dead")
)

// ParseSSHKeyFile parses ssh key file.
func ParseSSHKeyFile(fp string) (ssh.Signer, error) {
key, err := ioutil.ReadFile(fp)
if err != nil {
Expand All @@ -39,6 +40,7 @@ func ParseSSHKeyFile(fp string) (ssh.Signer, error) {
return ssh.ParsePrivateKey(key)
}

// ParseSSHAuthorizedKeysFile parses ssh Authorized Keys file.
func ParseSSHAuthorizedKeysFile(fp string) (map[string]bool, error) {
authorizedKeysBytes, err := ioutil.ReadFile(fp)
if err != nil {
Expand Down

0 comments on commit 2707a8f

Please sign in to comment.