mirror of
https://github.com/fatedier/frp.git
synced 2024-11-24 02:59:19 +08:00
parent
1bc9d1a28e
commit
e66e77cb8f
@ -75,6 +75,7 @@ func NewGateway(
|
||||
sshConfig.PublicKeyCallback = func(conn ssh.ConnMetadata, key ssh.PublicKey) (*ssh.Permissions, error) {
|
||||
authorizedKeysMap, err := loadAuthorizedKeysFromFile(cfg.AuthorizedKeysFile)
|
||||
if err != nil {
|
||||
log.Error("load authorized keys file error: %v", err)
|
||||
return nil, fmt.Errorf("internal error")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user