Skip to content

Commit 3613a12

Browse files
committed
Improved support FQDN for OTA target // Resolve platformio#56
1 parent c6d77f3 commit 3613a12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def __fetch_spiffs_size(target, source, env):
261261
ota_port = None
262262
if env.get("UPLOAD_PORT"):
263263
ota_port = re.match(
264-
r"\"?((([0-9]{1,3}\.){3}[0-9]{1,3})|.+\.local)\"?$",
264+
r"\"?((([0-9]{1,3}\.){3}[0-9]{1,3})|[^\\/]+\.[^\\/]+)\"?$",
265265
env.get("UPLOAD_PORT"))
266266
if ota_port:
267267
env.Replace(UPLOADCMD="$UPLOADOTACMD")

0 commit comments

Comments
 (0)