ipchama / dhammer

DHCP stress tester and benchmark tool
Apache License 2.0
27 stars 10 forks source link

custom server listening port? #23

Open IntuitIntelLLC opened 4 weeks ago

IntuitIntelLLC commented 4 weeks ago

I have a test scenario where I need to emulate several hundred VLANs/client spread across them, and I’m attempting to do it from a single box, and a single network interface that I then spin up the VLAN tagged sub interfaces, and then spin up the dhammer on each one of those… clearly after the very first instance all of the rest conflict with port 8080. what am I missing here, is there a small change or flag that I can specify the server listening port?

IntuitIntelLLC commented 4 weeks ago

// StartAPI starts the API server. func (s *Server) StartAPI() { http.HandleFunc("/metrics", s.metricsHandler) http.HandleFunc("/stats", s.statsHandler) http.HandleFunc("/logs", s.logsHandler) http.ListenAndServe(":8080", nil) } Here, yes?

IntuitIntelLLC commented 4 weeks ago

cmd.Flags().Int("api-port", 8080, "Port for the API server to listen on.")