Skip to content

Commit

Permalink
fix ipv6 in banlog
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaojianli committed Mar 6, 2025
1 parent 826365b commit 66e8345
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions webui/src/views/banlist/components/banListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@
<a-space fill style="display: flex; justify-content: space-between">
<a-space wrap>
<a-typography-text bold copyable>
<!-- TODO: 这里vue-i18n会有一个离奇的报错,Need to install with app.use function,修不好,只能先不用 -->
{{ item.banMetadata.peer.address.ip }}:{{ item.banMetadata.peer.address.port }}
{{
formatIPAddressPort(
item.banMetadata.peer.address.ip,
item.banMetadata.peer.address.port
)
}}
</a-typography-text>
<a-tooltip
:content="
Expand Down Expand Up @@ -163,6 +167,7 @@ import CountryFlag from '@/components/countryFlag.vue'
import { unbanIP } from '@/service/banList'
import { getColor } from '@/utils/color'
import { formatFileSize } from '@/utils/file'
import { formatIPAddressPort } from '@/utils/string'
import { Message } from '@arco-design/web-vue'
import { useResponsiveState } from '@arco-design/web-vue/es/grid/hook/use-responsive-state'
import { ref } from 'vue'
Expand Down

0 comments on commit 66e8345

Please sign in to comment.