Skip to content

Commit 6e80979

Browse files
committed
Change default masterlist server
1 parent bf84759 commit 6e80979

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,10 @@
2626
*.exe
2727
*.out
2828
*.app
29+
30+
# Visual Studio Stuff
31+
*.sdf
32+
*.opensdf
33+
Debug/
34+
Release/
35+
ipch/

README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ Fixes the infamous SA-MP internet tab bug.
1212
## How does it work?
1313
Simple! This fix is composed of two main parts:
1414

15-
1. A php script which parses [SACNR Monitor](http://monitor.sacnr.com/) two times a day and saves all server IPs on my (free) webhost server in the format used by SA-MP client;
15+
1. A php script that parses [SACNR Monitor](http://monitor.sacnr.com/) and writes in a file all server IPs in the format used by SA-MP client;
1616

1717
Why SACNR? Because they have implemented an API which allows adding of new servers to their Monitor by simple running a filterscript. Details [here](http://monitor.sacnr.com/api.html).
1818

19-
2. A DLL injected into SA-MP client which redirects all the traffic outgoing to SA-MP Masterlist to the server specified in `masterlist_fix.cfg` (default: my webhost server)
19+
2. A DLL injected into SA-MP client which redirects all the traffic outgoing to SA-MP Masterlist to the server specified in `masterlist_fix.cfg` (default: [nickdodd25](https://github.com/nickdodd25)'s server)
2020

2121

2222
## My server still is not appearing on the internet tab.
@@ -28,14 +28,10 @@ You can register your server by following these [steps](http://monitor.sacnr.com
2828
## How can I contribute?
2929
There are several parts in this fix which can get better:
3030

31-
1. Masterlist server
32-
* this is currently hosted on a free account, which means:
33-
* it may or may not handle heavy traffic;
34-
* the account can be terminated at any time.
35-
* if you have a webhost/VPS/dedi with unlimited bandwidth and relatively high transfer speed at your disposal then you can help this project by hosting the masterlist. Just upload `update_masterlist.php` to your server, `crontab` it and create an issue containing the link to `masterlist.txt`;
36-
* or better, if you're a maintainer of SACNR Monitor API and do not mind high traffic, then you can help by directly providing a list of servers in SA-MP client format, so the parser will be no longer needed.
31+
1. ~~Masterlist server~~
32+
* thanks to [nickdodd25](https://github.com/nickdodd25), masterlist is now hosted on a powerful machine so it will support heavy traffic;
33+
* if you're a maintainer of SACNR Monitor API and do not mind high traffic, then you can help by directly providing a list of servers in SA-MP client format, so the parser will be no longer needed.
3734

3835
2. Injection code
3936
* this fix is currently injected into SA-MP process by a helper executable `masterlist_fix.exe` which means that the user has to open THAT executable instead of the original executable `samp.exe`
4037
* an auto injector (like ASI Loader) would be a perfect solution
41-

hook/hook.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#pragma comment(lib, "detours.lib")
66
#pragma comment(lib, "ws2_32.lib")
77

8-
#define MASTERLIST_HOST_DEFAULT "masterlist.freeho.st"
9-
#define MASTERLIST_PATH_DEFAULT "/sa-mp_masterlist/masterlist.txt"
8+
#define MASTERLIST_HOST_DEFAULT "monitor.teamshrimp.com"
9+
#define MASTERLIST_PATH_DEFAULT "/list/masterlist.txt"
1010

1111
int (WINAPI *pSend)(SOCKET s, const char* buf, int len, int flags) = send;
1212
int WINAPI HOOK_send(SOCKET s, const char* buf, int len, int flags);

0 commit comments

Comments
 (0)