Skip to content
This repository was archived by the owner on Nov 28, 2024. It is now read-only.

Commit 9b193c8

Browse files
committed
upscale if no upscale tag is present. bind to 0.0.0.0
1 parent bb56fde commit 9b193c8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub async fn start(state: AppState, mut shutdown_rx: Receiver<()>) {
1919

2020
let routes = make_routes(state);
2121

22-
let addr = SocketAddr::from(([127, 0, 0, 1], config.port));
22+
let addr = SocketAddr::from(([0, 0, 0, 0], config.port));
2323
let server = axum::Server::bind(&addr)
2424
.serve(routes.into_make_service())
2525
.with_graceful_shutdown(async move { shutdown_rx.recv().await.unwrap() });

src/tags_provider.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ impl UpscaleTagChecker {
2626

2727
pub async fn kavita_contains_upscale_tag(&self, book_id: &u32, auth: &str) -> Result<bool, HttpError> {
2828
match &self.upscale_tag {
29-
None => Ok(false),
29+
None => Ok(true),
3030
Some(upscale_tag) => {
3131
match self.cache.get(&book_id.to_string()) {
3232
None => Ok(self.check_kavita_tags(upscale_tag, book_id, auth).await?),
@@ -38,7 +38,7 @@ impl UpscaleTagChecker {
3838

3939
pub async fn komga_contains_upscale_tag(&self, book_id: &str, cookie: &str) -> Result<bool, HttpError> {
4040
match &self.upscale_tag {
41-
None => Ok(false),
41+
None => Ok(true),
4242
Some(upscale_tag) => {
4343
match self.cache.get(book_id) {
4444
None => Ok(self.check_komga_tags(upscale_tag, book_id, cookie).await?),

0 commit comments

Comments
 (0)