From 2bdf90a9225c0727ae93a882483a9aff48c96aeb Mon Sep 17 00:00:00 2001 From: Mygod Date: Sun, 11 Feb 2018 01:12:29 -0800 Subject: [PATCH] Add link-local addresses to host display --- mobile/src/main/java/be/mygod/vpnhotspot/Utils.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/Utils.kt b/mobile/src/main/java/be/mygod/vpnhotspot/Utils.kt index bdc7053f..0cec0aeb 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/Utils.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/Utils.kt @@ -30,7 +30,6 @@ fun setImageResource(imageView: ImageView, @DrawableRes resource: Int) = imageVi fun NetworkInterface.formatAddresses() = (this.interfaceAddresses.asSequence() - .filter { !it.address.isLinkLocalAddress } .map { "${it.address.hostAddress}/${it.networkPrefixLength}" } .toList() + listOfNotNull(this.hardwareAddress?.joinToString(":") { "%02x".format(it) }))