mygit

[UNMAINTAINED] A cgit/webgit alternative, written in Rust
Log | Files | Refs | README | LICENSE

commit 2554a8c10dd8454814b3a4779a23e9abe40bd751
parent e2b65f9daec4a15d23618fbf30b8cd2090bd1a34
Author: Johann150 <johann@qwertqwefsday.eu>
Date:   Sat, 20 Mar 2021 01:07:11 +0100

actually use port from config

Diffstat:
Msrc/main.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.rs b/src/main.rs @@ -482,6 +482,6 @@ async fn main() -> Result<(), std::io::Error> { app.at("/:repo_name/tree/:ref/item/:object_name") .get(repo_file); // Raw files, patch files - app.listen("127.0.0.1:8081").await?; + app.listen(format!("[::]:{}", CONFIG.port)).await?; Ok(()) }