Skip to content

Commit 5a19819

Browse files
committed
fix netif linux macos
1 parent f529524 commit 5a19819

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ytflow/src/plugin/netif/sys/apple/dns.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,11 @@ mod tests {
213213

214214
#[tokio::test]
215215
async fn test_lookup() {
216-
let selector =
217-
NetifSelector::new(SelectionMode::Manual("en0".into()), FamilyPreference::Both);
216+
let selector = NetifSelector::new(
217+
SelectionMode::Manual("en0".into()),
218+
FamilyPreference::Both,
219+
|_| None,
220+
);
218221
selector.cached_netif.store(Arc::new(Netif {
219222
name: "en0".into(),
220223
bsd_name: CString::from_vec_with_nul(b"en0\0"[..].into()).unwrap(),

ytflow/src/plugin/netif/sys/linux/dns.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ mod tests {
209209
let selector = NetifSelector::new(
210210
SelectionMode::Manual("wlp3s0".into()),
211211
FamilyPreference::Both,
212+
|_| None,
212213
);
213214
selector.cached_netif.store(Arc::new(Netif {
214215
name: "wlp3s0".into(),

0 commit comments

Comments
 (0)