chore: stabilize lint and verify builds
This commit is contained in:
@@ -13,12 +13,12 @@ type Config struct {
|
||||
StaticPath *string
|
||||
StaticRoute *string
|
||||
BaseURI *string
|
||||
Tls *Tls
|
||||
TLS *TLS
|
||||
Cors *Cors
|
||||
RateLimit *RateLimit
|
||||
}
|
||||
|
||||
type Tls struct {
|
||||
type TLS struct {
|
||||
Cert string
|
||||
Key string
|
||||
}
|
||||
@@ -57,5 +57,6 @@ func (h *Config) Address() string {
|
||||
if h.Host == "" {
|
||||
return fmt.Sprintf("0.0.0.0:%d", h.Port)
|
||||
}
|
||||
|
||||
return fmt.Sprintf("%s:%d", h.Host, h.Port)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user