mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
- fix Can't assign requested address
PR: 248647 Approved by: J Harris
This commit is contained in:
parent
acf0ce9015
commit
b0d2bf5e54
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=545762
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= fping
|
||||
PORTVERSION= 5.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://fping.org/dist/ \
|
||||
https://github.com/schweikert/${PORTNAME}/releases/download/v${PORTVERSION}/
|
||||
|
16
net/fping/files/patch-fping.c
Normal file
16
net/fping/files/patch-fping.c
Normal file
@ -0,0 +1,16 @@
|
||||
--- src/fping.c.orig 2020-08-05 11:10:13 UTC
|
||||
+++ src/fping.c
|
||||
@@ -1060,11 +1060,11 @@ int main(int argc, char** argv)
|
||||
exit(num_noaddress ? 2 : 1);
|
||||
}
|
||||
|
||||
- if (socket4 >= 0) {
|
||||
+ if (src_addr_set && socket4 >= 0) {
|
||||
socket_set_src_addr_ipv4(socket4, &src_addr, (socktype4 == SOCK_DGRAM) ? &ident4 : NULL);
|
||||
}
|
||||
#ifdef IPV6
|
||||
- if (socket6 >= 0) {
|
||||
+ if (src_addr6_set && socket6 >= 0) {
|
||||
socket_set_src_addr_ipv6(socket6, &src_addr6, (socktype6 == SOCK_DGRAM) ? &ident6 : NULL);
|
||||
}
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user