Skip to content

Commit

Permalink
feat(connections): fallback host column to destinationIP
Browse files Browse the repository at this point in the history
  • Loading branch information
kunish committed Aug 29, 2023
1 parent 49bf6c7 commit 4e5f8d2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Route, Routes, useNavigate } from '@solidjs/router'
import { Show, lazy, onMount } from 'solid-js'
import { Footer } from '~/components/Footer'
import { Header } from '~/components/Header'
import { curTheme, selectedEndpoint } from '~/signals'

Expand Down Expand Up @@ -42,11 +43,7 @@ export const App = () => {
</Routes>
</div>

<footer class="footer footer-center hidden rounded bg-base-200 p-2 text-base-content sm:block">
<a href="https://github.com/metacubex/metacubexd" target="_blank">
metacubexd
</a>
</footer>
<Footer />
</div>
)
}
11 changes: 11 additions & 0 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export const Footer = () => (
<footer class="footer footer-center hidden rounded bg-base-200 p-2 text-base-content sm:block">
<a
class="font-semibold"
href="https://github.com/metacubex/metacubexd"
target="_blank"
>
metacubexd
</a>
</footer>
)
3 changes: 2 additions & 1 deletion src/pages/Connections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ export default () => {
},
{
accessorKey: 'Host',
accessorFn: (row) => row.metadata.host,
accessorFn: (row) =>
row.metadata.host ? row.metadata.host : row.metadata.destinationIP,
},
{
accessorKey: 'Rule',
Expand Down

0 comments on commit 4e5f8d2

Please sign in to comment.