🔌 Add IPv6 Support

Co-Authored-By: kiyon <kiyonlin@163.com>
This commit is contained in:
Fenny 2020-07-14 04:02:05 +02:00
parent b6f0d6c6ad
commit d3dd32d9d1

2
app.go
View File

@ -609,6 +609,8 @@ func (app *App) init() *App {
fmt.Printf("views: %v\n", err) fmt.Printf("views: %v\n", err)
} }
} }
// TCP4 -> tcp4
app.Settings.Network = utils.ToLower(app.Settings.Network)
} }
if app.server == nil { if app.server == nil {
app.server = &fasthttp.Server{ app.server = &fasthttp.Server{