Skip to content

Commit

Permalink
Feat: rename network to networks for JsonV5
Browse files Browse the repository at this point in the history
  • Loading branch information
AkinoKaede committed Aug 19, 2022
1 parent adb7871 commit 8b7d283
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 72 deletions.
44 changes: 22 additions & 22 deletions proxy/dokodemo/config.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proxy/dokodemo/config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ message SimplifiedConfig {

v2ray.core.common.net.IPOrDomain address = 1;
uint32 port = 2;
v2ray.core.common.net.NetworkList network = 3;
v2ray.core.common.net.NetworkList networks = 3;
bool follow_redirect = 4;
}
2 changes: 1 addition & 1 deletion proxy/dokodemo/dokodemo.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func init() {
fullConfig := &Config{
Address: simplifiedServer.Address,
Port: simplifiedServer.Port,
Networks: simplifiedServer.Network.Network,
Networks: simplifiedServer.Networks.Network,
FollowRedirect: simplifiedServer.FollowRedirect,
}

Expand Down
2 changes: 1 addition & 1 deletion proxy/shadowsocks/simplified/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func init() {
CipherType: simplifiedServer.Method,
}),
},
Network: simplifiedServer.Network.Network,
Network: simplifiedServer.Networks.Network,
PacketEncoding: simplifiedServer.PacketEncoding,
}

Expand Down
93 changes: 47 additions & 46 deletions proxy/shadowsocks/simplified/config.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proxy/shadowsocks/simplified/config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ message ServerConfig{

v2ray.core.proxy.shadowsocks.CipherType method = 1;
string password = 2;
v2ray.core.common.net.NetworkList network = 3;
v2ray.core.common.net.NetworkList networks = 3;
v2ray.core.net.packetaddr.PacketAddrType packet_encoding = 4;
}

Expand Down

0 comments on commit 8b7d283

Please sign in to comment.