Guest User

Untitled

a guest
Aug 16th, 2022
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const data = `1.52.0.0 -- 1.55.255.255
  2. 14.0.16.0 -- 14.0.31.255
  3. 123.15.0.1 -- 123.15.0.255`
  4.  
  5. data.split('\n').map(item => {
  6. const ips = item.split(' -- ');
  7. console.log(`
  8. edit 1
  9.         set start-ip ${ips[0]}
  10.         set end-ip ${ips[1]}
  11.     next
  12. `)
  13. })
Advertisement
Add Comment
Please, Sign In to add comment