feat: implement ssh forwarding
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
type Config struct {
|
||||
DatabasePath string `json:"databasePath"`
|
||||
TemplateDirectoryPath string `json:"templateDirectoryPath"`
|
||||
HostKeyDirectoryPath string `json:"hostKeyDirectoryPath"`
|
||||
HostName string `json:"hostName"`
|
||||
}
|
||||
|
||||
@@ -29,5 +30,10 @@ func ReadConfigFrom(reader io.Reader) (Config, error) {
|
||||
return Config{}, err
|
||||
}
|
||||
|
||||
config.HostKeyDirectoryPath, err = filepath.Abs(config.HostKeyDirectoryPath)
|
||||
if err != nil {
|
||||
return Config{}, err
|
||||
}
|
||||
|
||||
return config, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user