mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-07-02 17:58:46 +00:00
HTTP transport: Use dest as Host if not set (#4038)
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
func (c *Config) getHosts() []string {
|
||||
if len(c.Host) == 0 {
|
||||
return []string{"www.example.com"}
|
||||
return []string{""}
|
||||
}
|
||||
return c.Host
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user