Berry make LVGL Panel and Led Panel compatible with VPN (#24016)
This commit is contained in:
parent
2660ad72ab
commit
0c625b0860
Binary file not shown.
@ -1035,8 +1035,12 @@ class lvgl_panel
|
|||||||
|
|
||||||
def send_iframe_code()
|
def send_iframe_code()
|
||||||
import webserver
|
import webserver
|
||||||
|
import string
|
||||||
self.update()
|
self.update()
|
||||||
var ip = tasmota.wifi().find('ip')
|
var ip = string.split(webserver.header('Host'), ':')[0] # get 'Host' header and take everything before the first ':'
|
||||||
|
if (ip == nil || ip == '')
|
||||||
|
ip = tasmota.wifi().find('ip')
|
||||||
|
end
|
||||||
if (ip == nil)
|
if (ip == nil)
|
||||||
ip = tasmota.eth().find('ip')
|
ip = tasmota.eth().find('ip')
|
||||||
end
|
end
|
||||||
|
|||||||
Binary file not shown.
@ -966,8 +966,12 @@ class leds_panel
|
|||||||
|
|
||||||
def send_iframe_code()
|
def send_iframe_code()
|
||||||
import webserver
|
import webserver
|
||||||
|
import string
|
||||||
self.update()
|
self.update()
|
||||||
var ip = tasmota.wifi().find('ip')
|
var ip = string.split(webserver.header('Host'), ':')[0] # get 'Host' header and take everything before the first ':'
|
||||||
|
if (ip == nil || ip == '')
|
||||||
|
ip = tasmota.wifi().find('ip')
|
||||||
|
end
|
||||||
if (ip == nil)
|
if (ip == nil)
|
||||||
ip = tasmota.eth().find('ip')
|
ip = tasmota.eth().find('ip')
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user