fix: inner http use host of address

This commit is contained in:
Skyxim
2023-03-29 20:50:46 +08:00
parent 7c80c88feb
commit db7623968d
2 changed files with 3 additions and 1 deletions

View File

@ -42,6 +42,8 @@ func NewInner(conn net.Conn, dst string, host string) *context.ConnContext {
if host == "" {
if ip, err := netip.ParseAddr(h); err == nil {
metadata.DstIP = ip
} else {
metadata.Host = h
}
}
}