diff src/luan/modules/IoLuan.java @ 1562:b89212fd04b5

remove table.luan
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 08 Nov 2020 16:50:59 -0700
parents 0ba144491a42
children 8fbcc4747091
line wrap: on
line diff
--- a/src/luan/modules/IoLuan.java	Thu Nov 05 20:24:09 2020 -0700
+++ b/src/luan/modules/IoLuan.java	Sun Nov 08 16:50:59 2020 -0700
@@ -428,7 +428,7 @@
 			File[] files = file.listFiles();
 			if( files==null )
 				return null;
-			LuanTable list = new LuanTable(luan);
+			LuanTable list = new LuanTable();
 			for( File f : files ) {
 				list.rawPut(list.rawLength()+1,new LuanFile(luan,f));
 			}
@@ -630,22 +630,22 @@
 	}
 
 	public static LuanTable my_ips(Luan luan) throws IOException, LuanException {
-		LuanTable tbl = new LuanTable(luan);
+		LuanTable tbl = new LuanTable();
 		for( Enumeration<NetworkInterface> e1 = NetworkInterface.getNetworkInterfaces(); e1.hasMoreElements(); ) {
 			NetworkInterface ni = e1.nextElement();
 			for( Enumeration<InetAddress> e2 = ni.getInetAddresses(); e2.hasMoreElements(); ) {
 				InetAddress ia = e2.nextElement();
 				if( ia instanceof Inet4Address )
-					tbl.put(ia.getHostAddress(),true);
+					tbl.put(luan,ia.getHostAddress(),true);
 			}
 		}
 		return tbl;
 	}
 
-	public static LuanTable dns_lookup(Luan luan,String domain,String type)
+	public static LuanTable dns_lookup(String domain,String type)
 		throws NamingException
 	{
-		LuanTable tbl = new LuanTable(luan);
+		LuanTable tbl = new LuanTable();
 		InitialDirContext idc = new InitialDirContext();
 		Attribute attribute;
 		try {