Przeglądaj źródła

fix: port range should be 1 ~ 65535 (#9211)

* fix: port range should be 1 ~ 65535

* fix: change max condition to 65535
EINDEX 2 lat temu
rodzic
commit
abcc6c5bcf
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/main/frontend/components/server.cljs

+ 2 - 2
src/main/frontend/components/server.cljs

@@ -87,12 +87,12 @@
                        (swap! *configs assoc :host value))}]]
                        (swap! *configs assoc :host value))}]]
 
 
       [:label
       [:label
-       [:strong "Port (0 ~ 65536)"]
+       [:strong "Port (1 ~ 65535)"]
        [:input.form-input
        [:input.form-input
         {:auto-focus true
         {:auto-focus true
          :value      port
          :value      port
          :min        "1"
          :min        "1"
-         :max        "65536"
+         :max        "65535"
          :type       "number"
          :type       "number"
          :on-change  #(let [value (.-value (.-target %))]
          :on-change  #(let [value (.-value (.-target %))]
                         (swap! *configs assoc :port value))}]]]
                         (swap! *configs assoc :port value))}]]]