Skip to content

Commit

Permalink
Prepare for release v0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhaopudark committed Sep 12, 2023
1 parent d8a243c commit d9096a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Module/Public/Manager.Proxy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
}elseif (Test-Platform 'Wsl2'){
$gateway_ip = (Select-String '/etc/resolv.conf' -Pattern "nameserver (.*)").Matches.Groups[1].Value #get gateway_ip
}elseif (Test-Platform 'MacOS') {
$gateway_ip = (route get default | Select-String -Pattern "nameserver (.*)").Matches.Groups[1].Value #get gateway_ip
$gateway_ip = (route get default | Select-String -Pattern "gateway: (.*)").Matches.Groups[1].Value #get gateway_ip

}else{
throw "The current platform, $($PSVersionTable.Platform), has not been supported yet."
Expand Down

0 comments on commit d9096a1

Please sign in to comment.