Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
geraked committed Nov 6, 2023
1 parent 7323465 commit c77a7be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Invoke-ps2exe dns.ps1 -x86 -requireAdmin -noConsole ^
-iconFile 'icon.ico' ^
-title 'DNS Changer' ^
-product 'DNS Changer' ^
-version '1.0.0' ^
-version '1.0.1' ^
-company 'Geraked' ^
-copyright '2023 Geraked' ^"

Expand Down
4 changes: 3 additions & 1 deletion dns.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,16 @@ elseif ($op -eq 0) {
}
else {
# Perform some action with the valid input values
$isOn = Change-Dns 4 $ip1 $ip2

if ($isOn) {
Change-Dns 3 $ip1 $ip2
}
else {
Change-Dns 2 $ip1 $ip2
}

$isOn = Change-Dns 4 $DNS1 $DNS2
$isOn = Change-Dns 4 $ip1 $ip2

if ($isOn) {
$button.BackColor = [System.Drawing.Color]::LightGreen
Expand Down

0 comments on commit c77a7be

Please sign in to comment.