mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-08-02 07:43:09 +00:00
Fix error for notification server
This commit is contained in:
parent
3fcbc9dc04
commit
202dd20be0
@ -10,8 +10,8 @@ import (
|
||||
"os"
|
||||
"os/signal"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"strconv"
|
||||
"strings"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
@ -46,7 +46,7 @@ func init() {
|
||||
}
|
||||
|
||||
func loadNotifConfig() {
|
||||
host := os.Getenv("NOTIFICATION_SERVER_HOST")
|
||||
host = os.Getenv("NOTIFICATION_SERVER_HOST")
|
||||
if host == "" {
|
||||
host = "0.0.0.0"
|
||||
}
|
||||
@ -55,7 +55,7 @@ func loadNotifConfig() {
|
||||
if os.Getenv("NOTIFICATION_SERVER_PORT") != "" {
|
||||
i, err := strconv.Atoi(os.Getenv("NOTIFICATION_SERVER_PORT"))
|
||||
if err == nil {
|
||||
port = i
|
||||
port = uint32(i)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user