forked from InazumaV/V2bX
-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add conditional compilation support add multi core support
- Loading branch information
Showing
36 changed files
with
1,718 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package conf | ||
|
||
type CoreConfig struct { | ||
Type string `yaml:"Type"` | ||
XrayConfig *XrayConfig `yaml:"Xray"` | ||
} | ||
|
||
type XrayConfig struct { | ||
LogConfig *LogConfig `yaml:"Log"` | ||
DnsConfigPath string `yaml:"DnsConfigPath"` | ||
RouteConfigPath string `yaml:"RouteConfigPath"` | ||
ConnectionConfig *ConnectionConfig `yaml:"ConnectionConfig"` | ||
InboundConfigPath string `yaml:"InboundConfigPath"` | ||
OutboundConfigPath string `yaml:"OutboundConfigPath"` | ||
} | ||
|
||
type ConnectionConfig struct { | ||
Handshake uint32 `yaml:"handshake"` | ||
ConnIdle uint32 `yaml:"connIdle"` | ||
UplinkOnly uint32 `yaml:"uplinkOnly"` | ||
DownlinkOnly uint32 `yaml:"downlinkOnly"` | ||
BufferSize int32 `yaml:"bufferSize"` | ||
} | ||
|
||
func NewConnectionConfig() *ConnectionConfig { | ||
return &ConnectionConfig{ | ||
Handshake: 4, | ||
ConnIdle: 30, | ||
UplinkOnly: 2, | ||
DownlinkOnly: 4, | ||
BufferSize: 64, | ||
} | ||
} |
Oops, something went wrong.