mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-06 01:39:04 +02:00
feat: improve design trough the whole application
This commit is contained in:
@@ -165,11 +165,12 @@ func initServer(r *gin.Engine) (*serverConfig, error) {
|
||||
}
|
||||
|
||||
var socketFn func() (*socket, error)
|
||||
if common.EnvConfig.SystemdSocket {
|
||||
switch {
|
||||
case common.EnvConfig.SystemdSocket:
|
||||
socketFn = systemdSocket
|
||||
} else if common.EnvConfig.UnixSocket != "" {
|
||||
case common.EnvConfig.UnixSocket != "":
|
||||
socketFn = unixSocket
|
||||
} else {
|
||||
default:
|
||||
socketFn = tcpSocket
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user