commit python-proton-vpn-killswitch-network-manager for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-proton-vpn-killswitch-network-manager for openSUSE:Factory checked in at 2024-06-24 20:56:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-proton-vpn-killswitch-network-manager (Old) and /work/SRC/openSUSE:Factory/.python-proton-vpn-killswitch-network-manager.new.18349 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-proton-vpn-killswitch-network-manager" Mon Jun 24 20:56:58 2024 rev:3 rq:1183036 version:0.4.5 Changes: -------- --- /work/SRC/openSUSE:Factory/python-proton-vpn-killswitch-network-manager/python-proton-vpn-killswitch-network-manager.changes 2024-05-22 21:33:34.164376436 +0200 +++ /work/SRC/openSUSE:Factory/.python-proton-vpn-killswitch-network-manager.new.18349/python-proton-vpn-killswitch-network-manager.changes 2024-06-24 20:58:18.551282523 +0200 @@ -1,0 +2,7 @@ +Mon Jun 24 15:34:26 UTC 2024 - Dirk Müller <dmueller@suse.com> + +- update to 0.4.5: + * Change kill switch connection IPv4 config from manual to + auto. + +------------------------------------------------------------------- Old: ---- v0.4.4.tar.gz New: ---- v0.4.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-proton-vpn-killswitch-network-manager.spec ++++++ --- /var/tmp/diff_new_pack.RgtrhR/_old 2024-06-24 20:58:18.991298602 +0200 +++ /var/tmp/diff_new_pack.RgtrhR/_new 2024-06-24 20:58:18.995298748 +0200 @@ -19,7 +19,7 @@ %define skip_python2 1 %{?sle15_python_module_pythons} Name: python-proton-vpn-killswitch-network-manager -Version: 0.4.4 +Version: 0.4.5 Release: 0 Summary: Proton VPN kill switch interface using NetworkManager License: GPL-3.0-or-later ++++++ v0.4.4.tar.gz -> v0.4.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-proton-vpn-killswitch-network-manager-0.4.4/debian/changelog new/python-proton-vpn-killswitch-network-manager-0.4.5/debian/changelog --- old/python-proton-vpn-killswitch-network-manager-0.4.4/debian/changelog 2024-04-30 15:26:05.000000000 +0200 +++ new/python-proton-vpn-killswitch-network-manager-0.4.5/debian/changelog 2024-06-14 10:45:54.000000000 +0200 @@ -1,3 +1,9 @@ +proton-vpn-killswitch-network-manager (0.4.5) unstable; urgency=medium + + * Change kill switch connection IPv4 config from manual to auto. + + -- Alexandru Cheltuitor <alexandru.cheltuitor@proton.ch> Thu, 13 Jun 2024 17:00:00 +0200 + proton-vpn-killswitch-network-manager (0.4.4) unstable; urgency=medium * Fix random crashes when enabling/disabling the kill switch diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-proton-vpn-killswitch-network-manager-0.4.4/proton/vpn/killswitch/backend/linux/networkmanager/killswitch_connection.py new/python-proton-vpn-killswitch-network-manager-0.4.5/proton/vpn/killswitch/backend/linux/networkmanager/killswitch_connection.py --- old/python-proton-vpn-killswitch-network-manager-0.4.4/proton/vpn/killswitch/backend/linux/networkmanager/killswitch_connection.py 2024-04-30 15:26:05.000000000 +0200 +++ new/python-proton-vpn-killswitch-network-manager-0.4.5/proton/vpn/killswitch/backend/linux/networkmanager/killswitch_connection.py 2024-06-14 10:45:54.000000000 +0200 @@ -28,6 +28,9 @@ from gi.repository import NM, GLib # pylint: disable=C0413 # noqa: E402 +DEFAULT_METRIC = -1 + + @dataclass class KillSwitchGeneralConfig: # pylint: disable=missing-class-docstring human_readable_id: str @@ -79,7 +82,7 @@ self._general_settings.interface_name ) s_con.set_property(NM.SETTING_CONNECTION_UUID, str(uuid.uuid4())) - s_con.set_property(NM.SETTING_CONNECTION_TYPE, "dummy") + s_con.set_property(NM.SETTING_CONNECTION_TYPE, NM.SETTING_DUMMY_SETTING_NAME) s_dummy = NM.SettingDummy.new() @@ -106,11 +109,12 @@ s_ip4 = NM.SettingIP4Config.new() if self._ipv4_settings is None: - s_ip4.set_property(NM.SETTING_IP_CONFIG_METHOD, "disabled") + s_ip4.set_property(NM.SETTING_IP_CONFIG_METHOD, NM.SETTING_IP4_CONFIG_METHOD_DISABLED) return s_ip4 - # Inform NM that the IP configuration is manual - s_ip4.set_property(NM.SETTING_IP_CONFIG_METHOD, "manual") + # NM.SETTING_IP4_CONFIG_METHOD_MANUAL stopped working on Ubuntu 24.04. + # The route metric was not taken into account. + s_ip4.set_property(NM.SETTING_IP_CONFIG_METHOD, NM.SETTING_IP4_CONFIG_METHOD_AUTO) # Add addresses for address in self._ipv4_settings.addresses: @@ -129,7 +133,7 @@ s_ip4.add_route( NM.IPRoute.new( family=GLib.SYSDEF_AF_INET, dest=ipv4, prefix=int(prefix), - next_hop=None, metric=-1 + next_hop=None, metric=DEFAULT_METRIC ) ) @@ -153,11 +157,11 @@ s_ip6 = NM.SettingIP6Config.new() if self._ipv6_settings is None: - s_ip6.set_property(NM.SETTING_IP_CONFIG_METHOD, "disabled") + s_ip6.set_property(NM.SETTING_IP_CONFIG_METHOD, NM.SETTING_IP6_CONFIG_METHOD_DISABLED) return s_ip6 # inform NM that the IP configuration is manual - s_ip6.set_property(NM.SETTING_IP_CONFIG_METHOD, "manual") + s_ip6.set_property(NM.SETTING_IP_CONFIG_METHOD, NM.SETTING_IP6_CONFIG_METHOD_MANUAL) # Add addresses for address in self._ipv6_settings.addresses: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-proton-vpn-killswitch-network-manager-0.4.4/rpmbuild/SPECS/package.spec new/python-proton-vpn-killswitch-network-manager-0.4.5/rpmbuild/SPECS/package.spec --- old/python-proton-vpn-killswitch-network-manager-0.4.4/rpmbuild/SPECS/package.spec 2024-04-30 15:26:05.000000000 +0200 +++ new/python-proton-vpn-killswitch-network-manager-0.4.5/rpmbuild/SPECS/package.spec 2024-06-14 10:45:54.000000000 +0200 @@ -1,5 +1,5 @@ %define unmangled_name proton-vpn-killswitch-network-manager -%define version 0.4.4 +%define version 0.4.5 %define release 1 Prefix: %{_prefix} @@ -52,6 +52,9 @@ %defattr(-,root,root) %changelog +* Thu Jun 13 2024 Alexandru Cheltuitor <alexandru.cheltuitor@proton.ch> 0.4.5 +- Change kill switch connection IPv4 config from manual to auto. + * Tue Apr 30 2024 Josep Llaneras <josep.llaneras@proton.ch> 0.4.4 - Fix random crashes when enabling/disabling the kill switch diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-proton-vpn-killswitch-network-manager-0.4.4/setup.py new/python-proton-vpn-killswitch-network-manager-0.4.5/setup.py --- old/python-proton-vpn-killswitch-network-manager-0.4.4/setup.py 2024-04-30 15:26:05.000000000 +0200 +++ new/python-proton-vpn-killswitch-network-manager-0.4.5/setup.py 2024-06-14 10:45:54.000000000 +0200 @@ -4,9 +4,9 @@ setup( name="proton-vpn-killswitch-network-manager", - version="0.4.4", + version="0.4.5", description="Proton Technologies VPN connector for linux", - author="Proton Technologies", + author="Proton AG", author_email="contact@protonmail.com", url="https://github.com/ProtonVPN/pyhon-protonvpn-network-manager", packages=find_namespace_packages(include=['proton.vpn.killswitch.backend.linux.networkmanager']),
participants (1)
-
Source-Sync