mirror of
https://github.com/go-acme/lego.git
synced 2025-09-16 17:46:21 +02:00
Change SetHTTPSPort to SetTLSPort
This commit is contained in:
@@ -105,14 +105,16 @@ func NewClient(caDirURL string, user User, keyBits int) (*Client, error) {
|
|||||||
|
|
||||||
// SetHTTPPort specifies a custom port to be used for HTTP based challenges.
|
// SetHTTPPort specifies a custom port to be used for HTTP based challenges.
|
||||||
func (c *Client) SetHTTPPort(port string) {
|
func (c *Client) SetHTTPPort(port string) {
|
||||||
/*if chlng, ok := c.solvers["http-01"]; ok {
|
if chlng, ok := c.solvers["http-01"]; ok {
|
||||||
}*/
|
chlng.(*httpChallenge).optPort = port
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetHTTPSPort specifies a custom port to be used for HTTPS based challenges.
|
// SetTLSPort specifies a custom port to be used for TLS based challenges.
|
||||||
func (c *Client) SetHTTPSPort(port string) {
|
func (c *Client) SetTLSPort(port string) {
|
||||||
/*if chlng, ok := c.solvers["tls-sni-01"]; ok {
|
if chlng, ok := c.solvers["tls-sni-01"]; ok {
|
||||||
}*/
|
chlng.(*tlsSNIChallenge).optPort = port
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExcludeChallenges explicitly removes challenges from the pool for solving.
|
// ExcludeChallenges explicitly removes challenges from the pool for solving.
|
||||||
|
@@ -48,7 +48,7 @@ func setup(c *cli.Context) (*Configuration, *Account, *acme.Client) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if c.GlobalIsSet("tlsPort") {
|
if c.GlobalIsSet("tlsPort") {
|
||||||
client.SetHTTPPort(c.GlobalString("tlsPort"))
|
client.SetTLSPort(c.GlobalString("tlsPort"))
|
||||||
}
|
}
|
||||||
|
|
||||||
return conf, acc, client
|
return conf, acc, client
|
||||||
|
Reference in New Issue
Block a user