feat: support listening on bonding NIC

This commit is contained in:
RangerCD 2025-03-04 11:33:52 +08:00
parent c3a16b5cd8
commit 1f53166478

View File

@ -33,11 +33,11 @@ namespace hf3fs::net {
static bool checkNicType(std::string_view nic, Address::Type type) {
switch (type) {
case Address::TCP:
return nic.starts_with("en") || nic.starts_with("eth");
return nic.starts_with("en") || nic.starts_with("eth") || nic.starts_with("bond");
case Address::IPoIB:
return nic.starts_with("ib");
case Address::RDMA:
return nic.starts_with("en") || nic.starts_with("eth");
return nic.starts_with("en") || nic.starts_with("eth") || nic.starts_with("bond");
case Address::LOCAL:
return nic.starts_with("lo");
default: