Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom server listening port? #23

Open
IntuitIntelLLC opened this issue Oct 17, 2024 · 2 comments
Open

custom server listening port? #23

IntuitIntelLLC opened this issue Oct 17, 2024 · 2 comments

Comments

@IntuitIntelLLC
Copy link

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
Copy link
Author

// 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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant