mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-12-22 11:23:32 +02:00
XHTTP downloadSettings
: Inherit sockopt
if its own doesn't exist (e.g., in extra
)
If you want `downloadSettings` to use its own `sockopt`, make sure that `extra` doesn't exist.
This commit is contained in:
parent
96fb680d45
commit
9dbdf92c27
1 changed files with 3 additions and 0 deletions
|
@ -308,6 +308,9 @@ func Dial(ctx context.Context, dest net.Destination, streamSettings *internet.Me
|
|||
globalDialerAccess.Lock()
|
||||
if streamSettings.DownloadSettings == nil {
|
||||
streamSettings.DownloadSettings = common.Must2(internet.ToMemoryStreamConfig(transportConfiguration.DownloadSettings)).(*internet.MemoryStreamConfig)
|
||||
if streamSettings.DownloadSettings.SocketSettings == nil {
|
||||
streamSettings.DownloadSettings.SocketSettings = streamSettings.SocketSettings
|
||||
}
|
||||
}
|
||||
globalDialerAccess.Unlock()
|
||||
memory2 := streamSettings.DownloadSettings
|
||||
|
|
Loading…
Reference in a new issue