mirror of
https://github.com/RGBCube/Site
synced 2025-08-01 13:37:49 +00:00
Don't expose self, run on localhost
This commit is contained in:
parent
81f236e18d
commit
1ddd22e59d
1 changed files with 2 additions and 6 deletions
|
@ -7,11 +7,7 @@ mod minify;
|
||||||
mod page;
|
mod page;
|
||||||
mod routes;
|
mod routes;
|
||||||
|
|
||||||
use std::net::{
|
use std::net::SocketAddr;
|
||||||
IpAddr,
|
|
||||||
Ipv6Addr,
|
|
||||||
SocketAddr,
|
|
||||||
};
|
|
||||||
|
|
||||||
use anyhow::Context;
|
use anyhow::Context;
|
||||||
use axum::Router;
|
use axum::Router;
|
||||||
|
@ -39,7 +35,7 @@ async fn main() -> anyhow::Result<()> {
|
||||||
.format_timestamp(None)
|
.format_timestamp(None)
|
||||||
.init();
|
.init();
|
||||||
|
|
||||||
let address = SocketAddr::new(IpAddr::from(Ipv6Addr::UNSPECIFIED), args.port);
|
let address = SocketAddr::new("::".parse().unwrap(), args.port);
|
||||||
|
|
||||||
let router = Router::new()
|
let router = Router::new()
|
||||||
.merge(routes::router())
|
.merge(routes::router())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue