forked from TrueCloudLab/lego
Remove CA path from config dir.
This commit is contained in:
parent
37b20117bf
commit
0f32c176d7
3 changed files with 32 additions and 42 deletions
|
@ -31,7 +31,7 @@ func (c *Configuration) OptPort() string {
|
|||
// ServerPath returns the OS dependent path to the data for a specific CA
|
||||
func (c *Configuration) ServerPath() string {
|
||||
srv, _ := url.Parse(c.context.GlobalString("server"))
|
||||
srvStr := strings.Replace(srv.Host, ":", "_", -1) + srv.Path
|
||||
srvStr := strings.Replace(srv.Host, ":", "_", -1)
|
||||
return strings.Replace(srvStr, "/", string(os.PathSeparator), -1)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue