Skip to content

Commit

Permalink
Final changes for 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-bennett committed Jun 24, 2015
1 parent 15f9032 commit 833593c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ android {
applicationId "org.cipherdyne.fwknop2"
minSdkVersion 15
targetSdkVersion 19
versionCode 5
versionName "1.0.1"
versionCode 6
versionName "1.0.2"
ndk {
moduleName 'libfwknop'
ldLibs 'log'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ public void onNothingSelected(AdapterView<?> parent) {
});

spn_ssh = (Spinner) rootView.findViewById(R.id.ssh);
ArrayList<String> list = new ArrayList<>(Arrays.asList(getResources().getStringArray(R.array.ssh_options)));
ArrayAdapter<String> adapter_ssh = new ArrayAdapter<>(getActivity(),
ArrayList<String> list = new ArrayList<String>(Arrays.asList(getResources().getStringArray(R.array.ssh_options)));
ArrayAdapter<String> adapter_ssh = new ArrayAdapter<String>(getActivity(),
android.R.layout.simple_spinner_item,list);
adapter_ssh.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spn_ssh.setAdapter(adapter_ssh);
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/java/biz/incomsystems/fwknop2/SendSPA.java
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,12 @@ protected String doInBackground(Void... params) {
lookup.setResolver(resolver);
Record[] records = lookup.run();
allowip_str = ((ARecord) records[0]).getAddress().toString();
Log.v("fwknop2", "Your external IP address is " + allowip_str);
if (allowip_str.contains("/")) {
allowip_str = allowip_str.split("/")[1];
}
} catch (Exception ex) {
Log.e("fwknop2", "error " + ex);
Log.e("fwknop2", "dns error " + ex);
}
try {
if (!(ipValidate.isValid(allowip_str))) {
Expand Down

0 comments on commit 833593c

Please sign in to comment.