Allow to use DNS.local as upload port for OTA // Issue #382

This commit is contained in:
Ivan Kravets committed 2015-12-30 15:02:13 +02:00
1 parent 121102beef
commit 680c3867db
3 files changed
+13 -7

No files matched your search

+3 -1
View File
@@ -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"
)