Skip to content

Commit

Permalink
Block any protocol instead of UDP only
Browse files Browse the repository at this point in the history
  • Loading branch information
FN-FAL113 committed Oct 13, 2023
1 parent 929910b commit b8abe47
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CS2ServerPicker/App.vb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
Environment.NewLine +
"Author: FN-FAL113 (github username)" + Environment.NewLine +
"License: GNU General Public License V3" + Environment.NewLine +
"App Version: 2.0.1",
"App Version: 2.0.2",
"App Info"
)
End Sub
Expand Down
4 changes: 2 additions & 2 deletions CS2ServerPicker/My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>

<Assembly: AssemblyVersion("2.0.1.0")>
<Assembly: AssemblyFileVersion("2.0.1.0")>
<Assembly: AssemblyVersion("2.0.2.0")>
<Assembly: AssemblyFileVersion("2.0.2.0")>
<Assembly: NeutralResourcesLanguage("en")>
4 changes: 2 additions & 2 deletions CS2ServerPicker/Services/ServerService.vb
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Module ServerService
Dim region As String = row.Cells(0).Value

proc.StartInfo.Arguments = "/c netsh advfirewall firewall " + If(block, "add", "delete") + " rule " +
"name=CS2ServerPicker_" + region.Replace(" ", "") + If(block, " dir=out action=block protocol=UDP " +
"name=CS2ServerPicker_" + region.Replace(" ", "") + If(block, " dir=out action=block protocol=ANY " +
"remoteip=" + ServerDictionary.Item(region), "")
proc.Start()
proc.WaitForExit()
Expand Down Expand Up @@ -167,7 +167,7 @@ Module ServerService
End If

proc.StartInfo.Arguments = "/c netsh advfirewall firewall " + If(block, "add", "delete") + " rule " +
"name=CS2ServerPicker_" + region.Replace(" ", "") + If(block, " dir=out action=block protocol=UDP " +
"name=CS2ServerPicker_" + region.Replace(" ", "") + If(block, " dir=out action=block protocol=ANY " +
"remoteip=" + ServerDictionary.Item(region), "")
proc.Start()
proc.WaitForExit()
Expand Down

6 comments on commit b8abe47

@syntaxboybe
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fully applicable na ba to sa cs2 zer?

@FN-FAL113
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fully applicable na ba to sa cs2 zer?

Try mo po sir 😄
Would appreciate any feedback.

@genemendz
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sir! how to launch? need to avoid chinese servers ASAP

@FN-FAL113
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sir! how to launch? need to avoid chinese servers ASAP

Hi sir, first extract the contents of the zip file by right clicking the zip file and selecting "Extract All", locate the contents of the file then execute CS2ServerPicker.exe.
image

@genemendz
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

brooo sorry wrong file pala na download. need to launch cs2 first before using para kumagat. kaso its affecting chrome also

@FN-FAL113
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

brooo sorry wrong file pala na download. need to launch cs2 first before using para kumagat. kaso its affecting chrome also

Ah ok po bro, CS2ServerPicker.zip file po dapat yung na download niyo na file.

Please sign in to comment.