Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Z3NTL3 committed May 30, 2024
1 parent 69c4eca commit e542144
Show file tree
Hide file tree
Showing 26 changed files with 9,554 additions and 155 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/z3ntl3/ProxyBeast">
<img alt="GitHub go.mod Go version" src="https://img.shields.io/github/go-mod/go-version/z3ntl3/ProxyBeast">
</div>
<a href="">Download ProxyBeast for Windows, Linux or MacOS</a> <br>
<a href="https://proxy.pix4.dev">Download ProxyBeast for Windows</a> <br>
</div>
<img src="https://proxy.pix4.dev/img/gui.png" width="400" style="border-radius: 4px;"><br>
<img alt="Static Badge" src="https://img.shields.io/badge/Build-BETA-8A2BE2">
Expand Down Expand Up @@ -39,7 +39,7 @@ and advanced capabilities.
- *Supports proxy checking for*
> ``SOCKS/4/5 & HTTP/HTTPS`` type proxies<br>
> - **NOTE**<br>
> SOCKS protocol version 4/a support comes after BETA
> SOCKS protocol version 4/a can be support. Open a request issue on Github issues.
- *Powerful event-driven goroutine pools*
> Results in efficient and reliable architecture
- *Lightweight app*
Expand All @@ -63,7 +63,7 @@ host:port
We are very happy regards your interest in ProxyBeast. This guide is dedicated
to help you install Proxybeast.

Do not worry, our software is ease of use, so we won't be covering usage tutorials here. You may find tutorials on our [YouTube](#todo) channel.
Do not worry, our software is ease of use, so we won't be covering usage tutorials here. You may find tutorials on our [YouTube](https://www.youtube.com/@z3ntl3wip) channel.

> [!NOTE]
> We are in the BETA phase. Currently the only way to install is from Github releases or to build from scratch.
Expand Down Expand Up @@ -147,7 +147,7 @@ Do not worry, our software is ease of use, so we won't be covering usage tutoria
Find an answer to most of your questions here. If it is not covered ask in [Discord](#todo).

* #### What do you mean with "zero dependency"
With zero-dependency, we mean that ProxyBeast is ported together with a low level module for all of it's networking requirements. Which is a native module and uses zero third party dependencies.
With zero-dependency, we mean that ProxyBeast is ported together with a low level module for all of it's networking requirements. Which is a native module and uses zero third party dependency.

> **Proxifier**<br>
A module/library that is especially written to be ported with ProxyBeast, built by our maintainers.<br>
Expand Down
4 changes: 2 additions & 2 deletions build/windows/installer/wails_tools.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
!define INFO_PROJECTNAME "ProxyBeast"
!endif
!ifndef INFO_COMPANYNAME
!define INFO_COMPANYNAME "ProxyBeast"
!define INFO_COMPANYNAME "Pix4"
!endif
!ifndef INFO_PRODUCTNAME
!define INFO_PRODUCTNAME "ProxyBeast"
Expand All @@ -17,7 +17,7 @@
!define INFO_PRODUCTVERSION "1.0.0"
!endif
!ifndef INFO_COPYRIGHT
!define INFO_COPYRIGHT "Copyright........."
!define INFO_COPYRIGHT "Copyright Pix4 - All Rights Reserved"
!endif
!ifndef PRODUCT_EXECUTABLE
!define PRODUCT_EXECUTABLE "${INFO_PROJECTNAME}.exe"
Expand Down
27 changes: 27 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"store": {
"timeout": "8s",
"judge": {
"Scheme": "https",
"Opaque": "",
"User": null,
"Host": "pool.proxyspace.pro",
"Path": "/judge.php",
"RawPath": "",
"OmitHost": false,
"ForceQuery": false,
"RawQuery": "",
"Fragment": "",
"RawFragment": ""
},
"all_time": {
"scans": 0,
"proxies": 0
},
"pool": {
"workers": {
"size": 10000
}
}
}
}
5 changes: 3 additions & 2 deletions core/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (c *Controller) Done() {

if current + 1 <= c.GetLoad() {
atomic.AddUint32(&c.current, 1)
runtime.EventsEmit(APP.ctx, Fire_CurrentThread, c.Current())
AppSettings.Store.AllTime.Proxies += 1
}
}

Expand Down Expand Up @@ -110,7 +110,7 @@ func (c *Controller) Abort(err error) {
go runtime.EventsEmit(
APP.ctx,
Fire_ErrEvent,
fmt.Sprintf("[ERROR] Aborting due: %s", err.Error()),
fmt.Sprintf("[ERROR] Aborting due to: %s", err.Error()),
)

atomic.StoreInt32(&c.abort, 1)
Expand All @@ -131,6 +131,7 @@ func (c *Controller) CanExit() {

select {
case <-done:
AppSettings.Store.AllTime.Scans += 1
return
}
}
Expand Down
1 change: 1 addition & 0 deletions core/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const (
Fire_CheckerEnd Operation = "checker_end"
Fire_CurrentThread Operation = "current_thread"
Fire_FatalError Operation = "fatal_error"
Fire_ProxyData Operation = "proxy_data"

// go runtime event listeners
OnStartScan Operation = "scan"
Expand Down
1 change: 1 addition & 0 deletions core/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func (c *Controller) StartScan(ctx context.Context, proto string) {
return
}

runtime.EventsEmit(APP.ctx, Fire_ProxyData, string(raw))
c.Done()
// Stop signal
case <-c.ShouldStop():
Expand Down
Loading

0 comments on commit e542144

Please sign in to comment.