mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Add "hostname" args to the bridge descriptor as well.
This commit is contained in:
parent
80acfbd8d8
commit
1b1fb37afe
1 changed files with 3 additions and 0 deletions
|
@ -301,6 +301,9 @@ func main() {
|
||||||
ln, err = startListener("tcp", bindaddr.Addr)
|
ln, err = startListener("tcp", bindaddr.Addr)
|
||||||
} else {
|
} else {
|
||||||
args.Add("tls", "yes")
|
args.Add("tls", "yes")
|
||||||
|
for _, hostname := range acmeHostnames {
|
||||||
|
args.Add("hostname", hostname)
|
||||||
|
}
|
||||||
ln, err = startListenerTLS("tcp", bindaddr.Addr, &certManager)
|
ln, err = startListenerTLS("tcp", bindaddr.Addr, &certManager)
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue