Selaa lähdekoodia

Merge branch 'master' of https://code.worldflying.cn/zhp/iot-platform-rust-lite
来自马哥的修改,调整了跳转及其他,需要pull

zii 1 kuukausi sitten
vanhempi
sitoutus
3a6b233f5f
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/main.rs

+ 2 - 2
src/main.rs

@@ -8,7 +8,7 @@ use tokio::sync::Mutex;
 use tower_http::cors::{Any, CorsLayer}; // 添加Any和CorsLayer的引用
 
 const WEBP: &str =
- "https://www.worldflying.cn/tools/4gplc/"
+ "https://www.worldflying.cn/tools/webapps/4gplc/"
 // "http://124.222.106.170/plc_ctrl"
 ;
 
@@ -246,4 +246,4 @@ async fn redirect_http_to_https(host:HeaderMap, uri: Uri) -> Result<Redirect, St
     } else {
         Err(StatusCode::BAD_REQUEST)
     }
-}
+}