patch for getting tap addresses from _nets
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user