mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 19:56:51 +08:00
Revert "make tun config compatible with premium"
This reverts commit ba6fdd2962
.
This commit is contained in:
parent
ba6fdd2962
commit
0209efd423
|
@ -209,7 +209,7 @@ func UnmarshalRawConfig(buf []byte) (*RawConfig, error) {
|
||||||
Tun: Tun{
|
Tun: Tun{
|
||||||
Enable: false,
|
Enable: false,
|
||||||
Stack: "gvisor",
|
Stack: "gvisor",
|
||||||
DnsHijack: []string{"0.0.0.0:53"},
|
DnsHijack: []string{"192.18.0.2:53"},
|
||||||
AutoRoute: true,
|
AutoRoute: true,
|
||||||
AutoDetectInterface: true,
|
AutoDetectInterface: true,
|
||||||
},
|
},
|
||||||
|
|
|
@ -38,8 +38,8 @@ type tunLinux struct {
|
||||||
|
|
||||||
// OpenTunDevice return a TunDevice according a URL
|
// OpenTunDevice return a TunDevice according a URL
|
||||||
func OpenTunDevice(tunAddress string, autoRoute bool) (TunDevice, error) {
|
func OpenTunDevice(tunAddress string, autoRoute bool) (TunDevice, error) {
|
||||||
deviceURL, _ := url.Parse("dev://meta?mtu=9000")
|
deviceURL, _ := url.Parse("dev://meta")
|
||||||
mtu, _ := strconv.ParseUint(deviceURL.Query().Get("mtu"), 10, 32)
|
mtu, _ := strconv.ParseInt(deviceURL.Query().Get("mtu"), 0, 32)
|
||||||
|
|
||||||
t := &tunLinux{
|
t := &tunLinux{
|
||||||
url: deviceURL.String(),
|
url: deviceURL.String(),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user