Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ android {
}
defaultConfig {
applicationId "org.freenetproject.mobile"
minSdkVersion 22
minSdkVersion 26
targetSdkVersion 30
versionCode 303
versionName '0.3.2-beta'
Expand Down Expand Up @@ -55,7 +55,7 @@ dependencies {
implementation 'com.google.guava:guava:24.1-jre'

// Freenet dependencies
implementation ('com.github.freenet-mobile:node-wrapper:0.6') {
implementation ('com.github.freenet-mobile:node-wrapper:2.0') {
exclude group: 'org.freenetproject', module: 'freenet-ext'
exclude group: 'net.java.dev.jna', module: 'jna'
exclude group: 'net.java.dev.jna', module: 'jna-platform'
Expand Down
10 changes: 7 additions & 3 deletions app/src/main/java/org/freenetproject/mobile/proxy/Simple.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,17 @@ public void run() {
}
}

@Override
public void run() {
public void run(String address, int port) {
Log.d("Freenet", "Proxy thread started");
try {
run("127.0.0.1", 8888, defaultLocalPort);
run(address, port, defaultLocalPort);
} catch (IOException e) {
e.printStackTrace();
}
}

@Override
public void run() {
run("127.0.0.1", 8888);
}
}
Loading