Skip to content

Commit 43ed7dd

Browse files
committed
Update README example
1 parent 04ea011 commit 43ed7dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
3838
});
3939
4040
let mut ipstack_config = ipstack::IpStackConfig::default();
41-
ipstack_config.mtu(MTU);
41+
ipstack_config.mtu(MTU)?;
4242
let mut ip_stack = ipstack::IpStack::new(ipstack_config, tun::create_as_async(&config)?);
4343
4444
while let Ok(stream) = ip_stack.accept().await {

0 commit comments

Comments
 (0)