mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 18:17:52 -05:00
19 lines
323 B
Go
19 lines
323 B
Go
package conf
|
|
|
|
import (
|
|
"v2ray.com/core/common/serial"
|
|
"v2ray.com/core/proxy/http"
|
|
)
|
|
|
|
type HttpServerConfig struct {
|
|
Timeout uint32 `json:"timeout"`
|
|
}
|
|
|
|
func (v *HttpServerConfig) Build() (*serial.TypedMessage, error) {
|
|
config := &http.ServerConfig{
|
|
Timeout: v.Timeout,
|
|
}
|
|
|
|
return serial.ToTypedMessage(config), nil
|
|
}
|