We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7515e82 commit 5804ea0Copy full SHA for 5804ea0
src/wgapi_windows.rs
@@ -204,6 +204,21 @@ impl WireguardInterfaceApi for WGApi<Kernel> {
204
});
205
}
206
207
+ debug!(
208
+ "Disabling automatic restart for interface {} tunnel service",
209
+ self.ifname
210
+ );
211
+ let service_update_output = Command::new("sc")
212
+ .arg("config")
213
+ .arg(format!("WireGuardTunnel${}", self.ifname))
214
+ .arg("start=demand")
215
+ .output()
216
+ .map_err(|err| {
217
+ error!("Failed to configure tunnel service. Error: {err}");
218
+ let message = err.to_string();
219
+ WireguardInterfaceError::ServiceInstallationFailed { err, message }
220
+ })?;
221
+
222
// TODO: set maximum transfer unit (MTU)
223
224
info!(
0 commit comments