Skip to content

Commit

Permalink
Fix parsing of PORT when passed through environment
Browse files Browse the repository at this point in the history
  • Loading branch information
jeisses committed Nov 22, 2023
1 parent f8a6098 commit 61ec3de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nosana_node/cli.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down

0 comments on commit 61ec3de

Please sign in to comment.