File tree Expand file tree Collapse file tree
web/src/components/torrents/details Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ export const PeersTable = memo(function PeersTable({
8080 id : "address" ,
8181 header : "IP:Port" ,
8282 cell : ( info ) => {
83- const displayIp = incognitoMode ? "192.168.x.x" : info . row . original . ip
83+ const displayIp = incognitoMode ? "192.168.x.x" : ( info . row . original . ip . match ( / : / ) ? `[ ${ info . row . original . ip } ]` : info . row . original . ip )
8484 const displayPort = incognitoMode ? "xxxxx" : info . row . original . port
8585 return (
8686 < span className = "font-mono text-xs" >
@@ -202,7 +202,7 @@ export const PeersTable = memo(function PeersTable({
202202
203203 const handleCopyIp = ( peer : SortedPeer ) => {
204204 if ( incognitoMode ) return
205- copyTextToClipboard ( `${ peer . ip } : ${ peer . port } ` )
205+ copyTextToClipboard ( `${ peer . ip } ` )
206206 toast . success ( "IP address copied to clipboard" )
207207 }
208208
You can’t perform that action at this time.
0 commit comments