Skip to content

Commit d818f96

Browse files
committed
v1.1.5
1. Fixed memory leak issue when searching proxy list. 2. Changed "version.json".
1 parent 340bd82 commit d818f96

File tree

16 files changed

+28
-22
lines changed

16 files changed

+28
-22
lines changed

mcrelay.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
mcrelay.c: Universal enterance for Minecraft Relay Server
33
A component of Minecraft Relay Server.
44
5-
Minecraft Relay Server, version 1.1.4
5+
Minecraft Relay Server, version 1.1.5
66
Copyright (c) 2020-2021 Bilin Tsui. All right reserved.
77
This is a Free Software, absolutely no warranty.
88

mod/basic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
basic.h: Header file of basic.c
33
A component of Minecraft Relay Server.
44
5-
Minecraft Relay Server, version 1.1.4
5+
Minecraft Relay Server, version 1.1.5
66
Copyright (c) 2020-2021 Bilin Tsui. All right reserved.
77
This is a Free Software, absolutely no warranty.
88

mod/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
config.h: Header file of config.c
33
A component of Minecraft Relay Server.
44
5-
Minecraft Relay Server, version 1.1.4
5+
Minecraft Relay Server, version 1.1.5
66
Copyright (c) 2020-2021 Bilin Tsui. All right reserved.
77
This is a Free Software, absolutely no warranty.
88

mod/linux/basic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
basic.c: Basic Functions for Minecraft Relay Server
33
A component of Minecraft Relay Server.
44
5-
Minecraft Relay Server, version 1.1.4
5+
Minecraft Relay Server, version 1.1.5
66
Copyright (c) 2020-2021 Bilin Tsui. All right reserved.
77
This is a Free Software, absolutely no warranty.
88

mod/linux/config.c

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
config.c: Functions for Config reading on Minecraft Relay Server
33
A component of Minecraft Relay Server.
44
5-
Minecraft Relay Server, version 1.1.4
5+
Minecraft Relay Server, version 1.1.5
66
Copyright (c) 2020-2021 Bilin Tsui. All right reserved.
77
This is a Free Software, absolutely no warranty.
88
@@ -41,8 +41,9 @@ struct conf
4141
};
4242
struct conf_map * getproxyinfo(struct conf * source, unsigned char * proxyname)
4343
{
44+
struct conf_map * result=NULL;
4445
int proxyname_length=strlen(proxyname);
45-
int detected_length = proxyname_length;
46+
int detected_length=proxyname_length;
4647
while(proxyname[detected_length-1]=='.')
4748
{
4849
detected_length--;
@@ -59,12 +60,13 @@ struct conf_map * getproxyinfo(struct conf * source, unsigned char * proxyname)
5960
{
6061
if(strcmp(source->relay[recidx].from,real_proxyname)==0)
6162
{
62-
free(real_proxyname);
63-
real_proxyname=NULL;
64-
return &(source->relay[recidx]);
63+
result=&(source->relay[recidx]);
64+
break;
6565
}
6666
}
67-
return NULL;
67+
free(real_proxyname);
68+
real_proxyname=NULL;
69+
return result;
6870
}
6971
void config_dump(struct conf * source)
7072
{

mod/linux/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
main.c: Main source code for Minecraft Relay Server
33
A component of Minecraft Relay Server.
44
5-
Minecraft Relay Server, version 1.1.4
5+
Minecraft Relay Server, version 1.1.5
66
Copyright (c) 2020-2021 Bilin Tsui. All right reserved.
77
This is a Free Software, absolutely no warranty.
88
@@ -18,9 +18,9 @@
1818
#include <sys/stat.h>
1919
#include <sys/un.h>
2020
#include <unistd.h>
21-
const char * version_str="1.1.4";
21+
const char * version_str="1.1.5";
2222
const char * year_str="2020-2021";
23-
const short version_internal=39;
23+
const short version_internal=40;
2424
struct conf config;
2525
char configfile[512],cwd[512],config_logfull[BUFSIZ];
2626
unsigned short config_runmode;

mod/linux/misc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
misc.c: Misc Functions for Minecraft Relay Server
33
A component of Minecraft Relay Server.
44
5-
Minecraft Relay Server, version 1.1.4
5+
Minecraft Relay Server, version 1.1.5
66
Copyright (c) 2020-2021 Bilin Tsui. All right reserved.
77
This is a Free Software, absolutely no warranty.
88

mod/linux/network.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
network.c: Network Functions for Minecraft Relay Server
33
A component of Minecraft Relay Server.
44
5-
Minecraft Relay Server, version 1.1.4
5+
Minecraft Relay Server, version 1.1.5
66
Copyright (c) 2020-2021 Bilin Tsui. All right reserved.
77
This is a Free Software, absolutely no warranty.
88

mod/linux/proto_legacy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
proto_legacy.c: Functions for Legacy Protocol (13w39b and before) on Minecraft Relay Server
33
A component of Minecraft Relay Server.
44
5-
Minecraft Relay Server, version 1.1.4
5+
Minecraft Relay Server, version 1.1.5
66
Copyright (c) 2020-2021 Bilin Tsui. All right reserved.
77
This is a Free Software, absolutely no warranty.
88

mod/linux/proto_modern.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
proto_modern.c: Functions for Modern Protocol (13w41a and later) on Minecraft Relay Server
33
A component of Minecraft Relay Server.
44
5-
Minecraft Relay Server, version 1.1.4
5+
Minecraft Relay Server, version 1.1.5
66
Copyright (c) 2020-2021 Bilin Tsui. All right reserved.
77
This is a Free Software, absolutely no warranty.
88

0 commit comments

Comments
 (0)