Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
volker committed Feb 6, 2024
1 parent 6a8abcf commit 7929034
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A small rust project that visualizes the contents of iptables in a web interface.

An example to embedd a [SPA](https://en.wikipedia.org/wiki/Single-page_application) into a rust binary with minimal runtime dependencies.
An example to embedd a [SPA](https://en.wikipedia.org/wiki/Single-page_application) into a rust binary with minimal runtime dependencies.
It uses [svelte](https://svelte.dev), [vite](https://vitejs.dev), [tailwindcss](https://tailwindcss.com) on the web frontend. And rust, [warp] on the backend.

Credits to the Rust+Vite+Svelte project https://github.com/fdeantoni/rust-vite-svelte and the iptables_exporter project https://github.com/kbknapp/iptables_exporter where this project took inspiration and code from.
Expand Down
1 change: 1 addition & 0 deletions web/src/Tables.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ async function getIptables() {
iptables = await response.json();
console.log(iptables);
tables = iptables.tables;
if (tables.length == 0) throw new Error("No tables found. Run as root or with sudo.");
cur_table = tables[0]
myerror = null;
Expand Down

0 comments on commit 7929034

Please sign in to comment.