Skip to content

Commit

Permalink
servers: show the IP address even if the API doesn't contain it
Browse files Browse the repository at this point in the history
  • Loading branch information
Istador committed Aug 24, 2024
1 parent 2fff135 commit 7665023
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/servers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default class Servers extends Vue {

getIPv4 ({ host, port, ip }: IHost) {
const ipv4 = getIPv4({ host, port })
return (ipv4 ? 'IPv4: <code>' + (ip || ipv4) + '</code>' + (ip ? '' : ' (dynamic)') : '')
+ (ip && ip !== ipv4 ? '<br/>Changed to <code>' + ipv4 + '</code>?' : '')
return (ip || ipv4 ? 'IPv4: <code>' + (ip || ipv4) + '</code>' + (ip ? '' : ' (dynamic)') : '')
+ (ip && ipv4 && ip !== ipv4 ? '<br/>Changed to <code>' + ipv4 + '</code>?' : '')
}
}

0 comments on commit 7665023

Please sign in to comment.