@@ -18,12 +18,12 @@ block headContent
1818
1919block content
2020 + pageTitle(` ${ peerSummary .getpeerinfo .length } Peer${ peerSummary .getpeerinfo .length == 1 ? " " : " s" } ` )
21-
21+
2222 + pageTabs(["Details" , "JSON" ])
2323
2424 .tab-content
2525 + pageTab("Details" , true )
26-
26+
2727 if (peerIpSummary && peerIpSummary .ips )
2828 .mb-3 ( id ="map" )
2929
@@ -57,7 +57,7 @@ block content
5757 tr( class =(index >= 5 ? " services-hidden-rows" : false ))
5858 td.small.text-muted #{index + 1 }
5959
60- td
60+ td
6161 if (! peerSummary .serviceNamesAvailable )
6262 | 0x
6363
@@ -99,7 +99,7 @@ block content
9999
100100 td #{item[0 ]}
101101 td.text-end #{item[1 ].toLocaleString ()}
102-
102+
103103
104104 + contentSection(` ${ peerSummary .getpeerinfo .length .toLocaleString ()} Peer${ peerSummary .getpeerinfo .length == 1 ? " " : " s" } ` )
105105 table.table.table-borderless.table-striped.table-responsive-sm.data-table.mt-4
@@ -110,6 +110,7 @@ block content
110110 th.text-card-highlight.text-uppercase.fw-light Address
111111 th.text-card-highlight.text-uppercase.fw-light Services
112112 th.text-card-highlight.text-uppercase.fw-light Conn. Type
113+ th.text-card-highlight.text-uppercase.fw-light Trans. Protocol
113114
114115 if (peerIpSummary && peerIpSummary .ips )
115116 th.text-card-highlight.text-uppercase.fw-light Location
@@ -148,6 +149,7 @@ block content
148149 | 0x#{item .services .replace (/ ^ 0+ / , ' ' )}
149150
150151 td #{item .connection_type }
152+ td #{item .transport_protocol_type }
151153
152154 if (peerIpSummary .ips )
153155 td
@@ -156,9 +158,9 @@ block content
156158 - var ipDetails = peerIpSummary .detailsByIp [ipAddr];
157159 if (ipDetails)
158160 if (ipDetails .city )
159- span #{ipDetails .city } ,
161+ span #{ipDetails .city } ,
160162 if (ipDetails .region_name )
161- span #{ipDetails .region_name } ,
163+ span #{ipDetails .region_name } ,
162164 if (ipDetails .country_name )
163165 span #{ipDetails .country_name }
164166 else
@@ -167,7 +169,7 @@ block content
167169 - var ipAddr = null ;
168170
169171 td #{lastSendAgo} / #{lastRecvAgo}
170-
172+
171173
172174
173175 + pageTab("JSON" )
@@ -183,15 +185,15 @@ block content
183185 + contentSection("Peer Details" )
184186 pre
185187 code.json #{JSON .stringify (item, null , 4 )}
186-
188+
187189
188190 if (peerIpSummary && peerIpSummary .detailsByIp && peerIpSummary .detailsByIp [item .addr .substring (0 , item .addr .lastIndexOf (" :" ))])
189191 + contentSection("Location Info" )
190192 pre
191193 code.json #{JSON .stringify (peerIpSummary .detailsByIp [item .addr .substring (0 , item .addr .lastIndexOf (" :" ))], null , 4 )}
192-
193194
194-
195+
196+
195197block endOfBody
196198 script( src =assetUrl (" ./js/jquery.dataTables.min.js" ), integrity =assetIntegrity (" jquery.dataTables.min.js" ), crossorigin ="anonymous" )
197199 script( src =assetUrl (" ./js/dataTables.bootstrap4.min.js" ), integrity =assetIntegrity (" dataTables.bootstrap4.min.js" ), crossorigin ="anonymous" )
@@ -236,6 +238,3 @@ block endOfBody
236238 - var ipDetailsPopupHtml = ipDetailsPopupHtml + ipDetails .country_name + " " ;
237239
238240 script L.marker([#{ipDetails .latitude } , #{ipDetails .longitude } ]).addTo(mymap).bindPopup("!{ipDetailsPopupHtml} ");
239-
240-
241-
0 commit comments