nuno ревизий этого фрагмента 1 month ago. К ревизии
1 file changed, 20 insertions
gistfile1.txt(файл создан)
| @@ -0,0 +1,20 @@ | |||
| 1 | + | _render_peer_accept_dests() { | |
| 2 | + | local peer_name="$1" | |
| 3 | + | local keys="${_ACCEPT_DEST_KEYS[$peer_name]:-}" | |
| 4 | + | [[ -z "$keys" ]] && return 0 | |
| 5 | + | for d_key in $keys; do | |
| 6 | + | local dest_stats="${_ACCEPT_DEST[$d_key]:-}" | |
| 7 | + | [[ -z "$dest_stats" ]] && continue | |
| 8 | + | local d_bytes_orig d_bytes_reply d_count | |
| 9 | + | IFS='|' read -r d_bytes_orig d_bytes_reply d_count <<< "$dest_stats" | |
| 10 | + | local rest_key="${d_key#${peer_name}:}" | |
| 11 | + | local d_ip="${rest_key%%:*}" | |
| 12 | + | local pp="${rest_key#*:}" | |
| 13 | + | local d_port="${pp%%:*}" | |
| 14 | + | local d_proto="${pp##*:}" | |
| 15 | + | local spec="${d_ip}:${d_port}:${d_proto}" | |
| 16 | + | local dest_display | |
| 17 | + | -- | |
| 18 | + | _render_peer_accept_dests "$current_name" | |
| 19 | + | ||
| 20 | + | skip_peer=false | |
Новее
Позже