]> Sergey Matveev's repositories - godlighty.git/blobdiff - cmd/godlighty/main.go
Raise copyright years
[godlighty.git] / cmd / godlighty / main.go
index e15c165fe500f799c0c97367c59a1a8e324f8179..ddf023b7ab40f8a7c9e6890eb7450c3a9c6420b7 100644 (file)
@@ -1,6 +1,6 @@
 /*
 godlighty -- highly-customizable HTTP, HTTP/2, HTTPS server
-Copyright (C) 2021 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2021-2023 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -96,7 +96,7 @@ func main() {
        }
 
        info := make(chan os.Signal)
-       signal.Notify(info, syscall.SIGINFO)
+       signal.Notify(info, InfoSignal)
        go func() {
                for {
                        <-info
@@ -104,6 +104,7 @@ func main() {
                }
        }()
 
+       godlighty.BindAddr = *bind
        srv := http.Server{
                Handler:           godlighty.MainHandler,
                ReadHeaderTimeout: RWTimeout,