Implemented SOCKS proxy port file: networks.d/nwid.port
This commit is contained in:
@@ -44,14 +44,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
}, 10000);
|
||||
*/
|
||||
|
||||
try
|
||||
{
|
||||
Thread.sleep(1000);
|
||||
}
|
||||
catch(java.lang.InterruptedException e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Create ZeroTier socket
|
||||
@@ -65,10 +58,19 @@ public class MainActivity extends AppCompatActivity {
|
||||
//int port = 8080;
|
||||
//SocketAddress sockaddr = new InetSocketAddress(addr, port);
|
||||
|
||||
try
|
||||
{
|
||||
Thread.sleep(15000);
|
||||
}
|
||||
catch(java.lang.InterruptedException e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Connect to remote host
|
||||
//Log.d("","ztjniConnect()\n");
|
||||
//int err = zt.ztjniConnect(sock, "10.144.211.245", 8080);
|
||||
//Log.d("", "ztjniConnect() = " + err + "\n");
|
||||
Log.d("","ztjniConnect()\n");
|
||||
int err = zt.ztjniConnect(sock, "10.9.9.203", 8080);
|
||||
Log.d("", "ztjniConnect() = " + err + "\n");
|
||||
|
||||
// Set up example proxy connection to SDK proxy server
|
||||
/*
|
||||
|
||||
@@ -9,7 +9,7 @@ This short tutorial will show you how to enable ZeroTier functionality for your
|
||||
|
||||
In this example we aim to set up a minimal [Android Studio](https://developer.android.com/studio/index.html) project which contains all of the components necessary to enable ZeroTier for your app. If you'd rather skip all of these steps and grab the code, look in the [sdk/android](https://github.com/zerotier/ZeroTierOne/tree/dev/sdk/integrations/android/example_app) folder in the source tree. Otherwise, let's get started!
|
||||
|
||||
*NOTE: For Android JNI libraries to build you'll need to install [Android Studio](https://developer.android.com/studio/index.html) the [Android NDK](https://developer.android.com/ndk/index.html), and you'll need to tell our project where you put it by putting the path in [this file](Android/proj/local.properties), you'll need to install the Android Build-Tools (this can typically be done through the editor the first time you start it up), and finally you should probably upgrade your Gradle plugin if it asks you to. If you don't have these things installed and configured we will detect that and just skip those builds automatically.*
|
||||
*NOTE: For Android JNI libraries to build you'll need to install [Android Studio](https://developer.android.com/studio/index.html) the [Android NDK](https://developer.android.com/ndk/index.html). Currently only Android NDK r10e is supported and can be found [here for OSX](http://dl.google.com/android/repository/android-ndk-r10e-darwin-x86_64.zip) and [here for Linux](http://dl.google.com/android/repository/android-ndk-r10e-linux-x86_64.zip). You'll need to tell our project where you put it by putting the path in [this file](Android/proj/local.properties), you'll need to install the Android Build-Tools (this can typically be done through the editor the first time you start it up), and finally you should probably upgrade your Gradle plugin if it asks you to. If you don't have these things installed and configured we will detect that and just skip those builds automatically.*
|
||||
|
||||
**Step 1: Select build targets**
|
||||
- Specify the target architectures you want to build in [Application.mk](android/java/jni/Application.mk). By default it will build `arm64-v8a`, `armeabi`, `armeabi-v7a`, `mips`, `mips64`, `x86`, and `x86_64`.
|
||||
|
||||
Reference in New Issue
Block a user