From 61ec3dedf58afc2c0c56b2d6a07ca0811051be0d Mon Sep 17 00:00:00 2001 From: Jesse Eisses Date: Wed, 22 Nov 2023 17:12:49 +0100 Subject: [PATCH] Fix parsing of PORT when passed through environment --- src/nosana_node/cli.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nosana_node/cli.clj b/src/nosana_node/cli.clj index 43578fe..e45f796 100644 --- a/src/nosana_node/cli.clj +++ b/src/nosana_node/cli.clj @@ -67,8 +67,9 @@ {:options [["-p" "--port PORT" "HTTP port" :default-desc "3000" - :default-fn (get-env-fn "PORT" 3000) + :default-fn (get-env-fn "PORT" 3000 #(Integer/parseInt %)) :parse-fn #(Integer/parseInt %) + :id :port :validate [#(< 0 % 0x10000) "Must be a number between 0 and 65536"]] [nil "--market ADDR" "Solana address of the market the node will join." :default-desc ""