File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -139,19 +139,6 @@ fn main() {
139
139
config. local_addr = Some ( bind_addr) ;
140
140
}
141
141
142
- // Overrides
143
- if matches. is_present ( "UDP_ONLY" ) {
144
- if let Some ( ref mut m) = config. manager {
145
- m. mode = m. mode . merge ( Mode :: UdpOnly ) ;
146
- }
147
- }
148
-
149
- if matches. is_present ( "TCP_AND_UDP" ) {
150
- if let Some ( ref mut m) = config. manager {
151
- m. mode = Mode :: TcpAndUdp ;
152
- }
153
- }
154
-
155
142
if matches. is_present ( "NO_DELAY" ) {
156
143
config. no_delay = true ;
157
144
}
@@ -188,6 +175,19 @@ fn main() {
188
175
}
189
176
}
190
177
178
+ // Overrides
179
+ if matches. is_present ( "UDP_ONLY" ) {
180
+ if let Some ( ref mut m) = config. manager {
181
+ m. mode = m. mode . merge ( Mode :: UdpOnly ) ;
182
+ }
183
+ }
184
+
185
+ if matches. is_present ( "TCP_AND_UDP" ) {
186
+ if let Some ( ref mut m) = config. manager {
187
+ m. mode = Mode :: TcpAndUdp ;
188
+ }
189
+ }
190
+
191
191
if let Some ( nofile) = matches. value_of ( "NOFILE" ) {
192
192
config. nofile = Some ( nofile. parse :: < u64 > ( ) . expect ( "an unsigned integer for `nofile`" ) ) ;
193
193
}
You can’t perform that action at this time.
0 commit comments