mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-17 18:06:15 -05:00
20 lines
401 B
Go
20 lines
401 B
Go
package conf
|
|
|
|
import (
|
|
"github.com/golang/protobuf/proto"
|
|
|
|
"github.com/v2fly/v2ray-core/v4/app/browserforwarder"
|
|
)
|
|
|
|
type BrowserForwarderConfig struct {
|
|
ListenAddr string `json:"listenAddr"`
|
|
ListenPort int32 `json:"listenPort"`
|
|
}
|
|
|
|
func (b BrowserForwarderConfig) Build() (proto.Message, error) {
|
|
return &browserforwarder.Config{
|
|
ListenAddr: b.ListenAddr,
|
|
ListenPort: b.ListenPort,
|
|
}, nil
|
|
}
|