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:
10
wicd.py
10
wicd.py
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user