mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-10-03 04:17:58 +03:00
Fix input when xhttp extra is empty
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
@@ -837,7 +837,10 @@ class GuiVTransportItemExtraXHttp(GuiEditorItemTextInput):
|
||||
xhttpObject = streamSettings['xhttpSettings']
|
||||
|
||||
try:
|
||||
oldExtra = UJSONEncoder.encode(xhttpObject.get('extra', ''))
|
||||
if xhttpObject.get('extra', ''):
|
||||
oldExtra = UJSONEncoder.encode(xhttpObject.get('extra', ''))
|
||||
else:
|
||||
oldExtra = ''
|
||||
except Exception:
|
||||
# Any non-exit exceptions
|
||||
|
||||
@@ -872,7 +875,10 @@ class GuiVTransportItemExtraXHttp(GuiEditorItemTextInput):
|
||||
try:
|
||||
xhttpObject = getXrayProxyOutboundStream(config)['xhttpSettings']
|
||||
|
||||
self.setText(UJSONEncoder.encode(xhttpObject.get('extra', '')))
|
||||
if xhttpObject.get('extra', ''):
|
||||
self.setText(UJSONEncoder.encode(xhttpObject.get('extra', '')))
|
||||
else:
|
||||
self.setText('')
|
||||
except Exception:
|
||||
# Any non-exit exceptions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user