Browse Source

bind email handler to 127.0.0.1 instead of 0.0.0.0

Son NK 5 years ago
parent
commit
d4a6269e43
1 changed files with 1 additions and 1 deletions
  1. 1 1
      email_handler.py

+ 1 - 1
email_handler.py

@@ -1258,7 +1258,7 @@ class MailHandler:
 
 
 if __name__ == "__main__":
-    controller = Controller(MailHandler(), hostname="0.0.0.0", port=20381)
+    controller = Controller(MailHandler(), hostname="127.0.0.1", port=20381)
 
     controller.start()
     LOG.d("Start mail controller %s %s", controller.hostname, controller.port)