Skip to content

Commit

Permalink
v1.1.5
Browse files Browse the repository at this point in the history
1. Fixed memory leak issue when searching proxy list.
2. Changed "version.json".
  • Loading branch information
bilintsui committed Jun 4, 2021
1 parent 340bd82 commit d818f96
Show file tree
Hide file tree
Showing 16 changed files with 28 additions and 22 deletions.
2 changes: 1 addition & 1 deletion mcrelay.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
mcrelay.c: Universal enterance for Minecraft Relay Server
A component of Minecraft Relay Server.
Minecraft Relay Server, version 1.1.4
Minecraft Relay Server, version 1.1.5
Copyright (c) 2020-2021 Bilin Tsui. All right reserved.
This is a Free Software, absolutely no warranty.
Expand Down
2 changes: 1 addition & 1 deletion mod/basic.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
basic.h: Header file of basic.c
A component of Minecraft Relay Server.
Minecraft Relay Server, version 1.1.4
Minecraft Relay Server, version 1.1.5
Copyright (c) 2020-2021 Bilin Tsui. All right reserved.
This is a Free Software, absolutely no warranty.
Expand Down
2 changes: 1 addition & 1 deletion mod/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
config.h: Header file of config.c
A component of Minecraft Relay Server.
Minecraft Relay Server, version 1.1.4
Minecraft Relay Server, version 1.1.5
Copyright (c) 2020-2021 Bilin Tsui. All right reserved.
This is a Free Software, absolutely no warranty.
Expand Down
2 changes: 1 addition & 1 deletion mod/linux/basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
basic.c: Basic Functions for Minecraft Relay Server
A component of Minecraft Relay Server.
Minecraft Relay Server, version 1.1.4
Minecraft Relay Server, version 1.1.5
Copyright (c) 2020-2021 Bilin Tsui. All right reserved.
This is a Free Software, absolutely no warranty.
Expand Down
14 changes: 8 additions & 6 deletions mod/linux/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
config.c: Functions for Config reading on Minecraft Relay Server
A component of Minecraft Relay Server.
Minecraft Relay Server, version 1.1.4
Minecraft Relay Server, version 1.1.5
Copyright (c) 2020-2021 Bilin Tsui. All right reserved.
This is a Free Software, absolutely no warranty.
Expand Down Expand Up @@ -41,8 +41,9 @@ struct conf
};
struct conf_map * getproxyinfo(struct conf * source, unsigned char * proxyname)
{
struct conf_map * result=NULL;
int proxyname_length=strlen(proxyname);
int detected_length = proxyname_length;
int detected_length=proxyname_length;
while(proxyname[detected_length-1]=='.')
{
detected_length--;
Expand All @@ -59,12 +60,13 @@ struct conf_map * getproxyinfo(struct conf * source, unsigned char * proxyname)
{
if(strcmp(source->relay[recidx].from,real_proxyname)==0)
{
free(real_proxyname);
real_proxyname=NULL;
return &(source->relay[recidx]);
result=&(source->relay[recidx]);
break;
}
}
return NULL;
free(real_proxyname);
real_proxyname=NULL;
return result;
}
void config_dump(struct conf * source)
{
Expand Down
6 changes: 3 additions & 3 deletions mod/linux/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
main.c: Main source code for Minecraft Relay Server
A component of Minecraft Relay Server.
Minecraft Relay Server, version 1.1.4
Minecraft Relay Server, version 1.1.5
Copyright (c) 2020-2021 Bilin Tsui. All right reserved.
This is a Free Software, absolutely no warranty.
Expand All @@ -18,9 +18,9 @@
#include <sys/stat.h>
#include <sys/un.h>
#include <unistd.h>
const char * version_str="1.1.4";
const char * version_str="1.1.5";
const char * year_str="2020-2021";
const short version_internal=39;
const short version_internal=40;
struct conf config;
char configfile[512],cwd[512],config_logfull[BUFSIZ];
unsigned short config_runmode;
Expand Down
2 changes: 1 addition & 1 deletion mod/linux/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
misc.c: Misc Functions for Minecraft Relay Server
A component of Minecraft Relay Server.
Minecraft Relay Server, version 1.1.4
Minecraft Relay Server, version 1.1.5
Copyright (c) 2020-2021 Bilin Tsui. All right reserved.
This is a Free Software, absolutely no warranty.
Expand Down
2 changes: 1 addition & 1 deletion mod/linux/network.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
network.c: Network Functions for Minecraft Relay Server
A component of Minecraft Relay Server.
Minecraft Relay Server, version 1.1.4
Minecraft Relay Server, version 1.1.5
Copyright (c) 2020-2021 Bilin Tsui. All right reserved.
This is a Free Software, absolutely no warranty.
Expand Down
2 changes: 1 addition & 1 deletion mod/linux/proto_legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
proto_legacy.c: Functions for Legacy Protocol (13w39b and before) on Minecraft Relay Server
A component of Minecraft Relay Server.
Minecraft Relay Server, version 1.1.4
Minecraft Relay Server, version 1.1.5
Copyright (c) 2020-2021 Bilin Tsui. All right reserved.
This is a Free Software, absolutely no warranty.
Expand Down
2 changes: 1 addition & 1 deletion mod/linux/proto_modern.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
proto_modern.c: Functions for Modern Protocol (13w41a and later) on Minecraft Relay Server
A component of Minecraft Relay Server.
Minecraft Relay Server, version 1.1.4
Minecraft Relay Server, version 1.1.5
Copyright (c) 2020-2021 Bilin Tsui. All right reserved.
This is a Free Software, absolutely no warranty.
Expand Down
2 changes: 1 addition & 1 deletion mod/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
main.h: Header file of main.c
A component of Minecraft Relay Server.
Minecraft Relay Server, version 1.1.4
Minecraft Relay Server, version 1.1.5
Copyright (c) 2020-2021 Bilin Tsui. All right reserved.
This is a Free Software, absolutely no warranty.
Expand Down
2 changes: 1 addition & 1 deletion mod/misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
misc.h: Header file of misc.c
A component of Minecraft Relay Server.
Minecraft Relay Server, version 1.1.4
Minecraft Relay Server, version 1.1.5
Copyright (c) 2020-2021 Bilin Tsui. All right reserved.
This is a Free Software, absolutely no warranty.
Expand Down
2 changes: 1 addition & 1 deletion mod/network.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
network.h: Header file of network.c
A component of Minecraft Relay Server.
Minecraft Relay Server, version 1.1.4
Minecraft Relay Server, version 1.1.5
Copyright (c) 2020-2021 Bilin Tsui. All right reserved.
This is a Free Software, absolutely no warranty.
Expand Down
2 changes: 1 addition & 1 deletion mod/proto_legacy.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
proto_legacy.h: Header file of proto_legacy.c
A component of Minecraft Relay Server.
Minecraft Relay Server, version 1.1.4
Minecraft Relay Server, version 1.1.5
Copyright (c) 2020-2021 Bilin Tsui. All right reserved.
This is a Free Software, absolutely no warranty.
Expand Down
2 changes: 1 addition & 1 deletion mod/proto_modern.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
proto_modern.h: Header file of proto_modern.c
A component of Minecraft Relay Server.
Minecraft Relay Server, version 1.1.4
Minecraft Relay Server, version 1.1.5
Copyright (c) 2020-2021 Bilin Tsui. All right reserved.
This is a Free Software, absolutely no warranty.
Expand Down
4 changes: 4 additions & 0 deletions version.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,9 @@
{
"version": 39,
"names": ["1.1.4-patch2","1.1.4"]
},
{
"version": 40,
"names": ["1.1.5"]
}
]

0 comments on commit d818f96

Please sign in to comment.