Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyc committed May 14, 2023
1 parent 2e6abfe commit 113f295
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# CHANGELOG

## v0.9.2
## v1.0.1

From @konanzheng

1. IP version check
2. Update docs

## v1.0.0

1. Stable Release

## v0.9.1

1. Update docs
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wol-rs"
version = "1.0.0"
version = "1.0.1"
edition = "2021"
authors = ["fengyingcai <[email protected]>"]
description = "Wake-on-LAN utility"
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ fn main() {
let mac_addr: MacAddr = args.mac_addr.parse().unwrap();
let bcast_addr: IpAddr = args.bcast_addr.parse().unwrap();
let bind_addr: IpAddr = args.bind_addr.parse().unwrap();
if bind_addr.is_ipv4() && bcast_addr.is_ipv6() || bind_addr.is_ipv6() && bcast_addr.is_ipv4() {
if (bind_addr.is_ipv4() && bcast_addr.is_ipv6()) || (bind_addr.is_ipv6() && bcast_addr.is_ipv4()) {
panic!("The IP versions of bind_addr and bcast_addr do not match");
}
send_wol(mac_addr, Some(bcast_addr), Some(bind_addr)).unwrap();
Expand Down

0 comments on commit 113f295

Please sign in to comment.