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 49d1a1d commit 0d70f97Copy full SHA for 0d70f97
src/wgapi_windows.rs
@@ -219,6 +219,18 @@ impl WireguardInterfaceApi for WGApi<Kernel> {
219
WireguardInterfaceError::ServiceInstallationFailed { err, message }
220
})?;
221
222
+ debug!("Done disabling automatic restart for the new service. Service update output: {service_update_output:?}",);
223
+ if !service_update_output.status.success() {
224
+ let message = format!(
225
+ "Failed to configure WireGuard tunnel service: {:?}",
226
+ service_update_output.stdout
227
+ );
228
+ return Err(WireguardInterfaceError::ServiceInstallationFailed {
229
+ err: io::Error::new(io::ErrorKind::Other, "Cannot configure service"),
230
+ message,
231
+ });
232
+ }
233
+
234
// TODO: set maximum transfer unit (MTU)
235
236
info!(
0 commit comments