mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
chore: update risefront
This commit is contained in:
parent
d9433cb00f
commit
bcf0b9c664
1 changed files with 2 additions and 1 deletions
3
main.go
3
main.go
|
@ -114,6 +114,7 @@ func main() {
|
||||||
err := risefront.New(ctx, risefront.Config{
|
err := risefront.New(ctx, risefront.Config{
|
||||||
Run: Program(confPath),
|
Run: Program(confPath),
|
||||||
Debug: cSettings.ServerSettings.RunMode == gin.DebugMode,
|
Debug: cSettings.ServerSettings.RunMode == gin.DebugMode,
|
||||||
|
Name: "nginx-ui",
|
||||||
Addresses: []string{fmt.Sprintf("%s:%d", cSettings.ServerSettings.Host, cSettings.ServerSettings.Port)},
|
Addresses: []string{fmt.Sprintf("%s:%d", cSettings.ServerSettings.Host, cSettings.ServerSettings.Port)},
|
||||||
ErrorHandler: func(kind string, err error) {
|
ErrorHandler: func(kind string, err error) {
|
||||||
if errors.Is(err, net.ErrClosed) {
|
if errors.Is(err, net.ErrClosed) {
|
||||||
|
@ -122,7 +123,7 @@ func main() {
|
||||||
logger.Error(kind, err)
|
logger.Error(kind, err)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
if !errors.Is(err, context.DeadlineExceeded) &&
|
if err != nil && !errors.Is(err, context.DeadlineExceeded) &&
|
||||||
!errors.Is(err, context.Canceled) &&
|
!errors.Is(err, context.Canceled) &&
|
||||||
!errors.Is(err, net.ErrClosed) {
|
!errors.Is(err, net.ErrClosed) {
|
||||||
logger.Error(err)
|
logger.Error(err)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue