update 2024-03-26 19:58:19

This commit is contained in:
kenzok8
2024-03-26 19:58:19 +08:00
parent 53d6dc3711
commit a792eb06cd
2 changed files with 17 additions and 2 deletions

View File

@@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=ddns-go
PKG_VERSION:=6.2.2
PKG_VERSION:=6.3.0
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/jeessy2/ddns-go/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=9c1ccfe60ea1e6fc81d2905b5ef7c7bd403a1858de4f0d3aed81e57bce8cfaa0
PKG_HASH:=307a0b045f3631b0f67d566903b80d0ecdd47c8159000ee0d93debe3c59097a0
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE

View File

@@ -0,0 +1,15 @@
--- a/server/server.c
+++ b/server/server.c
@@ -1942,11 +1942,11 @@ main(int argc, char **argv)
text = (char*)malloc(strlen(protocol) - 11);
memcpy(text, protocol, strlen(protocol) - 11);
int length = strlen(protocol) - 11;
- free(protocol);
obfs = (char*)malloc(length);
memset(protocol, 0x00, length);
memcpy(protocol, text, length);
LOGI("protocol compatible enable, %s", protocol);
+ free(protocol);
free(text);
protocol_compatible = 1;
}