mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-11-13 20:23:00 -08:00
fix nil pointer handling in MemoryStreamConfig conversion.
This commit is contained in:
1 file changed
+4
-1
@@ -17,7 +17,10 @@ func ToMemoryStreamConfig(s *StreamConfig) (*MemoryStreamConfig, error) {
|
||||
mss := &MemoryStreamConfig{
|
||||
ProtocolName: s.GetEffectiveProtocol(),
|
||||
ProtocolSettings: ets,
|
||||
SocketSettings: s.SocketSettings,
|
||||
}
|
||||
|
||||
if s != nil {
|
||||
mss.SocketSettings = s.SocketSettings
|
||||
}
|
||||
|
||||
if s != nil && s.HasSecuritySettings() {
|
||||
|
||||
Reference in new issue
Block a user