2015-12-07 14:32:38 -05:00
|
|
|
package inbound
|
|
|
|
|
|
|
|
import (
|
2016-05-07 14:26:29 -04:00
|
|
|
"github.com/v2ray/v2ray-core/common/protocol"
|
2015-12-07 14:32:38 -05:00
|
|
|
)
|
|
|
|
|
2016-01-18 19:21:07 -05:00
|
|
|
type DetourConfig struct {
|
|
|
|
ToTag string
|
|
|
|
}
|
|
|
|
|
|
|
|
type FeaturesConfig struct {
|
|
|
|
Detour *DetourConfig
|
|
|
|
}
|
|
|
|
|
2016-02-25 08:38:41 -05:00
|
|
|
type DefaultConfig struct {
|
|
|
|
AlterIDs uint16
|
2016-05-07 14:26:29 -04:00
|
|
|
Level protocol.UserLevel
|
2016-02-25 08:38:41 -05:00
|
|
|
}
|
|
|
|
|
2016-01-15 06:43:06 -05:00
|
|
|
type Config struct {
|
2016-05-07 14:26:29 -04:00
|
|
|
AllowedUsers []*protocol.User
|
2016-01-18 19:21:07 -05:00
|
|
|
Features *FeaturesConfig
|
2016-02-25 08:38:41 -05:00
|
|
|
Defaults *DefaultConfig
|
2016-04-24 16:40:43 -04:00
|
|
|
DetourConfig *DetourConfig
|
2015-12-07 14:32:38 -05:00
|
|
|
}
|