Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Commit

Permalink
Submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
yvbbrjdr committed Mar 21, 2017
1 parent d2eb66a commit 85017ed
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
@@ -0,0 +1,3 @@
[submodule "libsodium"]
path = libsodium
url = https://github.com/jedisct1/libsodium.git
12 changes: 5 additions & 7 deletions README.md
Expand Up @@ -45,20 +45,18 @@ Type these commands in your terminal:
```bash
sudo apt-get -y install git make build-essential qt5-default qt5-qmake
cd /tmp/
git clone https://github.com/jedisct1/libsodium.git
git clone https://github.com/pipesocks/pipesocks.git
cd libsodium/
cd pipesocks/
git checkout stable
git submodule update
cd libsodium/
./autogen.sh
./configure
make && sudo make install
sudo cp /usr/local/lib/libsodium.so.18 /usr/lib/
cd ../pipesocks/pipesocks/
git checkout stable
cd ../pipesocks/
qmake server.pipesocks.pro && make
sudo cp pipesocks /usr/bin/
cd ../../
sudo rm -R pipesocks/
sudo rm -R libsodium/
```

And you'll be able to run pipesocks.
Expand Down
1 change: 1 addition & 0 deletions libsodium
Submodule libsodium added at e6b7bb
4 changes: 2 additions & 2 deletions pipesocks/server.main.cpp
Expand Up @@ -44,14 +44,14 @@ int main(int argc,char **argv) {
printf("Welcome to Pipesocks pump\nServer is listening at port %d\n",LocalPort);
} else if (type=="pipe") {
if (RemoteHost=="") {
printf("Remote Host requred\n%s",Usage.toStdString().c_str());
printf("Remote Host required\n%s",Usage.toStdString().c_str());
return 1;
}
server=new TcpServer(TcpServer::PipeServer,RemoteHost,RemotePort,Password);
printf("Welcome to Pipesocks pipe\nServer is listening at port %d and connects to %s:%d\n",LocalPort,RemoteHost.toStdString().c_str(),RemotePort);
} else if (type=="tap") {
if (RemoteHost=="") {
printf("Remote Host requred\n%s",Usage.toStdString().c_str());
printf("Remote Host required\n%s",Usage.toStdString().c_str());
return 1;
}
server=new TcpServer(TcpServer::TapClient,RemoteHost,RemotePort,Password);
Expand Down

0 comments on commit 85017ed

Please sign in to comment.