Commit Graph

5 Commits

Author SHA1 Message Date
Shane Smiskol
c92be0564c Automatically generate service ports (#136)
* make sure specified port isn't reserved

* only sshd

* Add check to tests as well and test

* commonly define these safety check numbers in services and check in both places

* add function to generate new ports that aren't reserved

* port is guaranteed to not be a reserved port and above 8000 now

asserting the rate on runtime isn't necessary, just for testing

* create service_list dynamically

* redundant

* just add an offset equal to length of services dict

* fix test?

* only one reserved

* ignore the argument type error

* rm line

* Add back tests

* starts at 8001
2021-04-20 17:57:54 +02:00
Adeeb Shihadeh
566152fc29 fix linter 2020-07-29 14:09:00 -07:00
Adeeb Shihadeh
87c10d3346 fix test file path 2020-07-29 13:57:24 -07:00
Adeeb Shihadeh
17c3ad78f2 test generated services.h 2020-07-29 13:45:03 -07:00
Adeeb Shihadeh
3020c2b925 simple service tests 2020-07-29 13:38:36 -07:00