mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-06-21 11:49:55 +00:00
Merge pull request #987 from mritd/master
feat(acme): support acme listen host
This commit is contained in:
commit
804e3f6df9
@ -83,6 +83,7 @@ type serverConfigACME struct {
|
|||||||
CA string `mapstructure:"ca"`
|
CA string `mapstructure:"ca"`
|
||||||
DisableHTTP bool `mapstructure:"disableHTTP"`
|
DisableHTTP bool `mapstructure:"disableHTTP"`
|
||||||
DisableTLSALPN bool `mapstructure:"disableTLSALPN"`
|
DisableTLSALPN bool `mapstructure:"disableTLSALPN"`
|
||||||
|
ListenHost string `mapstructure:"listenHost"`
|
||||||
AltHTTPPort int `mapstructure:"altHTTPPort"`
|
AltHTTPPort int `mapstructure:"altHTTPPort"`
|
||||||
AltTLSALPNPort int `mapstructure:"altTLSALPNPort"`
|
AltTLSALPNPort int `mapstructure:"altTLSALPNPort"`
|
||||||
Dir string `mapstructure:"dir"`
|
Dir string `mapstructure:"dir"`
|
||||||
@ -280,6 +281,7 @@ func (c *serverConfig) fillTLSConfig(hyConfig *server.Config) error {
|
|||||||
Agreed: true,
|
Agreed: true,
|
||||||
DisableHTTPChallenge: c.ACME.DisableHTTP,
|
DisableHTTPChallenge: c.ACME.DisableHTTP,
|
||||||
DisableTLSALPNChallenge: c.ACME.DisableTLSALPN,
|
DisableTLSALPNChallenge: c.ACME.DisableTLSALPN,
|
||||||
|
ListenHost: c.ACME.ListenHost,
|
||||||
AltHTTPPort: c.ACME.AltHTTPPort,
|
AltHTTPPort: c.ACME.AltHTTPPort,
|
||||||
AltTLSALPNPort: c.ACME.AltTLSALPNPort,
|
AltTLSALPNPort: c.ACME.AltTLSALPNPort,
|
||||||
Logger: logger,
|
Logger: logger,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user