patch for getting tap addresses from _nets

This commit is contained in:
Joseph Henry
2016-12-09 11:39:15 -08:00
parent a5811d8f4c
commit 447595bf73
4 changed files with 18 additions and 16 deletions

View File

@@ -185,7 +185,7 @@ class ViewController: UIViewController {
sleep(1)
dispatch_async(dispatch_get_main_queue()) {
var str_buf = [Int8](count: 16, repeatedValue: 0)
self.zt.get_ipv6_address(self.txtNWID.text!, &str_buf)
self.zt.get_ipv4_address(self.txtNWID.text!, &str_buf)
self.lblAddress.text = String.fromCString(str_buf)
print("addr = ", String.fromCString(str_buf))
}