[network-manager-openvpn] properties: allow fragment size of 0
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-openvpn] properties: allow fragment size of 0
- Date: Tue, 8 Mar 2016 15:38:24 +0000 (UTC)
commit 8014a81618f1047edebf4bd96bb0d26fecb4dfd4
Author: Boris HUISGEN <bhuisgen hbis fr>
Date: Sat Mar 5 02:14:18 2016 +0100
properties: allow fragment size of 0
Allow fragmentation size of 0 to disable internal OpenVPN fragmentation.
Signed-off-by: Boris HUISGEN <bhuisgen hbis fr>
https://bugzilla.gnome.org/show_bug.cgi?id=763122
properties/auth-helpers.c | 2 +-
properties/nm-openvpn-dialog.ui | 1 -
2 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/properties/auth-helpers.c b/properties/auth-helpers.c
index 8b87ed4..8276bd3 100644
--- a/properties/auth-helpers.c
+++ b/properties/auth-helpers.c
@@ -1578,7 +1578,7 @@ advanced_dialog_new (GHashTable *hash, const char *contype)
errno = 0;
tmp = strtol (value, NULL, 10);
- if (errno == 0 && tmp > 0 && tmp < 65536) {
+ if (errno == 0 && tmp >= 0 && tmp < 65536) {
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), TRUE);
widget = GTK_WIDGET (gtk_builder_get_object (builder, "fragment_spinbutton"));
diff --git a/properties/nm-openvpn-dialog.ui b/properties/nm-openvpn-dialog.ui
index ba91610..4c4ce15 100644
--- a/properties/nm-openvpn-dialog.ui
+++ b/properties/nm-openvpn-dialog.ui
@@ -22,7 +22,6 @@
<property name="page_increment">10</property>
</object>
<object class="GtkAdjustment" id="adjustment4">
- <property name="lower">1</property>
<property name="upper">65535</property>
<property name="value">1300</property>
<property name="step_increment">1</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]