1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-22 05:48:03 +01:00

Made IsValidIP method check that each ip octet is an integer < 255.

Added checks to the network entry settings menu to make sure that all the settings are valid.
Fixed global dns being set to True whenever static IP address were enabled for wireless networks.
This commit is contained in:
imdano
2008-01-25 09:23:50 +00:00
parent 85bdd4b072
commit c09b49dd6c
3 changed files with 70 additions and 31 deletions

10
wicd.py
View File

@@ -44,6 +44,11 @@ import dbus.service
import getopt
import time
# Wicd specific imports
import wpath
import misc
import gui
# Import egg.trayicon if we're using an older gtk version
if not (gtk.gtk_version[0] >= 2 and gtk.gtk_version[1] >= 10):
import egg.trayicon
@@ -54,11 +59,6 @@ else:
if getattr(dbus, 'version', (0, 0, 0)) >= (0, 41, 0):
import dbus.glib
# Wicd specific imports
import wpath
import misc
import gui
if sys.platform == 'linux2':
# Set process name. Only works on Linux >= 2.1.57.
try: