File tree 1 file changed +23
-21
lines changed
1 file changed +23
-21
lines changed Original file line number Diff line number Diff line change @@ -65,26 +65,28 @@ impl SystemProxy {
65
65
pub fn unset ( ) {
66
66
let services = get_services ( ) ;
67
67
68
- let _ = networksetup ( )
69
- . args ( [
70
- format ! ( "-setwebproxystate" , string_protocol) ,
71
- service,
72
- "off" . to_string ( ) ,
73
- ] )
74
- . output ( ) ;
75
- let _ = networksetup ( )
76
- . args ( [
77
- format ! ( "-setsecurewebproxystate" , string_protocol) ,
78
- service,
79
- "off" . to_string ( ) ,
80
- ] )
81
- . output ( ) ;
82
- let _ = networksetup ( )
83
- . args ( [
84
- format ! ( "-setsocksfirewallproxystate" , string_protocol) ,
85
- service,
86
- "off" . to_string ( ) ,
87
- ] )
88
- . output ( ) ;
68
+ for service in & services {
69
+ let _ = networksetup ( )
70
+ . args ( [
71
+ format ! ( "-setwebproxystate" ) ,
72
+ service. clone ( ) ,
73
+ "off" . to_string ( ) ,
74
+ ] )
75
+ . output ( ) ;
76
+ let _ = networksetup ( )
77
+ . args ( [
78
+ format ! ( "-setsecurewebproxystate" ) ,
79
+ service. clone ( ) ,
80
+ "off" . to_string ( ) ,
81
+ ] )
82
+ . output ( ) ;
83
+ let _ = networksetup ( )
84
+ . args ( [
85
+ format ! ( "-setsocksfirewallproxystate" ) ,
86
+ service. clone ( ) ,
87
+ "off" . to_string ( ) ,
88
+ ] )
89
+ . output ( ) ;
90
+ }
89
91
}
90
92
}
You can’t perform that action at this time.
0 commit comments