feat: added http host config (#157)

Co-authored-by: 0xJacky <me@jackyu.cn>
This commit is contained in:
superlollipop 2023-08-28 15:48:27 +08:00 committed by GitHub
parent 5165554282
commit 2cba64c989
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 96 additions and 59 deletions

View file

@ -28,7 +28,7 @@ func main() {
overseer.Run(overseer.Config{
Program: server.Program,
Address: fmt.Sprintf(":%s", settings.ServerSettings.HttpPort),
Address: fmt.Sprintf("%s:%s", settings.ServerSettings.HttpHost, settings.ServerSettings.HttpPort),
Fetcher: &fetcher.File{Path: r.ExPath},
TerminateTimeout: 0,
})