From 40034f943f4cd991183fbd55e8a7058aa179f471 Mon Sep 17 00:00:00 2001 From: takotori Date: Mon, 11 Dec 2023 19:45:54 +0100 Subject: [PATCH] remove method- bump version --- Cargo.toml | 2 +- src/network/connection.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e722149..be25590 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "re_set-lib" -version = "0.7.5" +version = "0.7.6" edition = "2021" description = "Data structure library for ReSet" repository = "https://github.com/Xetibo/ReSet-Lib" diff --git a/src/network/connection.rs b/src/network/connection.rs index a4b820d..839c055 100644 --- a/src/network/connection.rs +++ b/src/network/connection.rs @@ -801,7 +801,7 @@ pub struct IPV4Settings { pub ignore_auto_dns: bool, pub ignore_auto_dns_routes: bool, pub may_fail: bool, - pub dns_method: DNSMethod4, + pub method: DNSMethod4, pub never_default: bool, pub route_data: Vec
, } @@ -855,7 +855,7 @@ impl PropMapConvert for IPV4Settings { ignore_auto_dns, ignore_auto_dns_routes, may_fail, - dns_method, + method: dns_method, never_default, route_data, } @@ -889,8 +889,8 @@ impl PropMapConvert for IPV4Settings { ); map.insert("may-fail".into(), Variant(Box::new(self.may_fail))); map.insert( - "dns-method".into(), - Variant(Box::new(self.dns_method.to_i32())), + "method".into(), + Variant(Box::new(self.method.to_i32())), ); map.insert( "never-default".into(),