mirror of
https://github.com/troglobit/finit.git
synced 2026-10-26 12:14:37 +00:00
initctl: Add UDP/TCP to presentation of inetd services in verbose mode.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
ac0edc9b37
commit
e04c73bab8
1 file changed
+2
-1
@@ -405,7 +405,8 @@ int inetd_filter_str(inetd_t *inetd, char *str, size_t len)
|
||||
return 1;
|
||||
}
|
||||
|
||||
snprintf(str, len, "%s allow ", inetd->name);
|
||||
snprintf(str, len, "%s allow %s ", inetd->name,
|
||||
inetd->type == SOCK_DGRAM ? "UDP" : "TCP");
|
||||
LIST_FOREACH(filter, &inetd->filters, link) {
|
||||
char ifname[IFNAMSIZ];
|
||||
|
||||
|
||||
Reference in new issue
Block a user