mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1040930 - part 2 allow proxy connects if uri host is not yet known r=hurley
--HG-- extra : rebase_source : cbccec4785861bec7c25ed980df01c66c7001ac8
This commit is contained in:
parent
81558340be
commit
9140d8ea95
@ -999,8 +999,12 @@ nsSocketTransport::ResolveHost()
|
|||||||
#endif
|
#endif
|
||||||
// When not resolving mHost locally, we still want to ensure that
|
// When not resolving mHost locally, we still want to ensure that
|
||||||
// it only contains valid characters. See bug 304904 for details.
|
// it only contains valid characters. See bug 304904 for details.
|
||||||
if (!net_IsValidHostName(mHost))
|
// Sometimes the end host is not yet known and mHost is *
|
||||||
|
if (!net_IsValidHostName(mHost) &&
|
||||||
|
!mHost.Equals(NS_LITERAL_CSTRING("*"))) {
|
||||||
|
SOCKET_LOG((" invalid hostname %s\n", mHost.get()));
|
||||||
return NS_ERROR_UNKNOWN_HOST;
|
return NS_ERROR_UNKNOWN_HOST;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (mProxyTransparentResolvesHost) {
|
if (mProxyTransparentResolvesHost) {
|
||||||
// Name resolution is done on the server side. Just pretend
|
// Name resolution is done on the server side. Just pretend
|
||||||
|
Loading…
Reference in New Issue
Block a user