forked from platformio/platformio-core
Allow to use DNS.local as upload port for OTA // Issue #382
This commit is contained in:
1 parent
121102beef
commit
680c3867db
3 files changed
+13
-7
No files matched your search
@@ -231,7 +231,9 @@ if "FRAMEWORK" in env:
|
||||
|
||||
# Handle uploading via OTA
|
||||
try:
|
||||
if env.get("UPLOAD_PORT") and socket.inet_aton(env.get("UPLOAD_PORT")):
|
||||
if (env.get("UPLOAD_PORT") and (
|
||||
env.get("UPLOAD_PORT").endswith(".local") or
|
||||
socket.inet_aton(env.get("UPLOAD_PORT")))):
|
||||
env.Replace(
|
||||
UPLOADCMD="$UPLOADOTACMD"
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user