1. Daisuke Yamashita
  2. node-net-ping

Commits

stephenv  committed 7add610

Reset ping TTL after raw socket is closed, The traceRoute() example in the READNE.md used pingHost(), Remove traceRoute() from enhancements section in the README.md

  • Participants
  • Parent commits 50477a6
  • Branches default
  • Tags 1.1.7

Comments (0)

Files changed (2)

File README.md

View file
  • Ignore whitespace
         }
     }
 
-    session.pingHost ("192.168.10.10", 10, feedCb, doneCb);
+    session.traceRoute ("192.168.10.10", 10, feedCb, doneCb);
 
 # Example Programs
 
 
 # Roadmap
 
-In no particular order:
-
- * Implement traceRoute()
-
 Suggestions and requirements should be sent to <stephen.vickers.sv@gmail.com>.
 
 # License

File index.js

View file
  • Ignore whitespace
 	this.socket.on ("close", this.onSocketClose.bind (me));
 	this.socket.on ("message", this.onSocketMessage.bind (me));
 	
+	this.ttl = null;
 	this.setTTL (this.defaultTTL);
 	
 	return this.socket;