Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cfd7af9241 | ||
|
|
c81592fcc5 |
15
.build.sh
Executable file
15
.build.sh
Executable file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
export CC="gcc -static"
|
||||||
|
|
||||||
|
git clone https://github.com/jedisct1/libsodium --depth=1 --branch stable
|
||||||
|
cd libsodium || exit 1
|
||||||
|
./autogen.sh && ./configure --enable-minimal --disable-shared --prefix=/usr && make install
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
./autogen.sh && ./configure && make
|
||||||
|
[ -x glorytun ] || exit 1
|
||||||
|
|
||||||
|
mkdir -p deploy
|
||||||
|
strip -s glorytun
|
||||||
|
mv glorytun deploy/glorytun-$(cat VERSION)-$(uname -m).bin
|
||||||
@@ -282,8 +282,11 @@ static int sk_accept (int fd)
|
|||||||
|
|
||||||
int ret = accept(fd, (struct sockaddr *)&addr, &addr_size);
|
int ret = accept(fd, (struct sockaddr *)&addr, &addr_size);
|
||||||
|
|
||||||
if (ret==-1 && errno!=EINTR)
|
if (ret==-1) {
|
||||||
perror("accept");
|
if (errno!=EINTR)
|
||||||
|
perror("accept");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
fd_set_nonblock(ret);
|
fd_set_nonblock(ret);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user