Skip to content

Commit

Permalink
Support numerical local IP
Browse files Browse the repository at this point in the history
  • Loading branch information
Loudbooks committed Jan 12, 2025
1 parent 0bb28ff commit 0265d85
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion backend/src/delete_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ impl DeleteHandler {
}
}
}

Ok(())
}
}
2 changes: 1 addition & 1 deletion frontend/src/components/new/Submit.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
let domain = window.location.host;
if (domain.includes("localhost")) {
if (domain.includes("localhost") || domain.match(/192\.168\.\d+\.\d+/)) {
xhr.open("POST", `http://localhost:8080/upload`);
} else {
xhr.open("POST", `https://api.${domain}/upload`);
Expand Down

0 comments on commit 0265d85

Please sign in to comment.