changeset 765:55983a476a21

add back Io.my_ips()
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 29 Jul 2016 01:25:17 -0600
parents d2f61d5be9cc
children 4f880e2663a2
files core/src/luan/modules/Io.luan core/src/luan/modules/IoLuan.java
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
diff -r d2f61d5be9cc -r 55983a476a21 core/src/luan/modules/Io.luan
--- a/core/src/luan/modules/Io.luan	Tue Jul 26 17:22:14 2016 -0600
+++ b/core/src/luan/modules/Io.luan	Fri Jul 29 01:25:17 2016 -0600
@@ -5,6 +5,7 @@
 local M = {}
 
 M.ip = IoLuan.ip
+M.my_ips = IoLuan.my_ips
 M.read_console_line = IoLuan.read_console_line
 M.schemes = IoLuan.newSchemes()
 M.uri = IoLuan.uri
diff -r d2f61d5be9cc -r 55983a476a21 core/src/luan/modules/IoLuan.java
--- a/core/src/luan/modules/IoLuan.java	Tue Jul 26 17:22:14 2016 -0600
+++ b/core/src/luan/modules/IoLuan.java	Fri Jul 29 01:25:17 2016 -0600
@@ -829,7 +829,7 @@
 			return null;
 		}
 	}
-/*
+
 	public static LuanTable my_ips() throws IOException {
 		LuanTable tbl = new LuanTable();
 		for( Enumeration<NetworkInterface> e1 = NetworkInterface.getNetworkInterfaces(); e1.hasMoreElements(); ) {
@@ -842,7 +842,7 @@
 		}
 		return tbl;
 	}
-*/
+
 /*
 	// files maps zip name to uri
 	public static void zip(LuanState luan,String zipUri,LuanTable files) throws LuanException, IOException {