Skip to content

Commit

Permalink
Android: Utils: remove superfluous arg to getActiveNetworkInterface()
Browse files Browse the repository at this point in the history
re #126
  • Loading branch information
bk138 committed Aug 15, 2023
1 parent 2d64131 commit 8062b63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public static void inspectEvent(MotionEvent e)
}


public static NetworkInterface getActiveNetworkInterface(Context c) {
public static NetworkInterface getActiveNetworkInterface() {
try {
for (Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) {
NetworkInterface intf = en.nextElement();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public void run() {
Inet6Address in6 = Inet6Address.getByAddress(
address.getHostName(),
address.getAddress(),
Utils.getActiveNetworkInterface(canvas.getContext()));
Utils.getActiveNetworkInterface());

connSettings.address = in6.getHostAddress();
Log.i(TAG, "Using IPv6");
Expand Down

0 comments on commit 8062b63

Please sign in to comment.