iteration
This commit is contained in:
		
							
								
								
									
										6
									
								
								lns.lua
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								lns.lua
									
									
									
									
									
								
							| @ -51,10 +51,10 @@ if action == "lookup" then | |||||||
|         return |         return | ||||||
|     end |     end | ||||||
|  |  | ||||||
|     local id = lns_lookup(hostname) |     local result = lns_lookup(hostname) | ||||||
|     if id ~= nil then |     if result ~= nil then | ||||||
|         io.write(id) |         io.write(id) | ||||||
|         cache[hostname] = id |         cache[hostname] = result | ||||||
|     end |     end | ||||||
|  |  | ||||||
| elseif action == "clear" then | elseif action == "clear" then | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user