mirror of https://github.com/v2ray/v2ray-core
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
332 B
19 lines
332 B
8 years ago
|
package conf
|
||
|
|
||
|
import (
|
||
|
"v2ray.com/core/common/loader"
|
||
|
"v2ray.com/core/proxy/http"
|
||
|
)
|
||
|
|
||
|
type HttpServerConfig struct {
|
||
|
Timeout uint32 `json:"timeout"`
|
||
|
}
|
||
|
|
||
|
func (this *HttpServerConfig) Build() (*loader.TypedSettings, error) {
|
||
|
config := &http.ServerConfig{
|
||
|
Timeout: this.Timeout,
|
||
|
}
|
||
|
|
||
|
return loader.NewTypedSettings(config), nil
|
||
|
}
|