1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-12 12:50:28 +08:00

feat: add MTU random range

This commit is contained in:
源文雨
2023-08-04 09:12:22 +08:00
parent 6f1829fef2
commit 3839182c85
5 changed files with 46 additions and 29 deletions

View File

@@ -31,8 +31,10 @@ type Peer struct {
QuerySeconds int64 `yaml:"QuerySeconds"`
AllowTrans bool `yaml:"AllowTrans"`
MTU int64 `yaml:"MTU"`
MTURandomRange int64 `yaml:"MTURandomRange"`
}
// Parse 解析配置文件
func Parse(path string) (c Config) {
file, err := os.ReadFile(path)
if err != nil {