diff --git a/__init__.py b/__init__.py index 7364754..d4ca224 100644 --- a/__init__.py +++ b/__init__.py @@ -115,7 +115,7 @@ class RemoteCLIPProxy: class SendRemoteCLIP: @classmethod def INPUT_TYPES(cls): - return {"required": {"CLIP": ("CLIP",), "listen_port": ("INT", {"default": 8181})}} + return {"required": {"CLIP": ("CLIP",), "listen_port": ("INT", {"default": 8181, "min": 1, "max": 65535})}} RETURN_TYPES = () FUNCTION = "start_worker" @@ -158,7 +158,7 @@ class SendRemoteCLIP: class LoadRemoteCLIP: @classmethod def INPUT_TYPES(cls): - return {"required": {"worker_ip": ("STRING", {"default": "127.0.0.1"}), "port": ("INT", {"default": 8181})}} + return {"required": {"worker_ip": ("STRING", {"default": "127.0.0.1"}), "port": ("INT", {"default": 8181, "min": 1, "max": 65535})}} RETURN_TYPES = ("CLIP",) FUNCTION = "load_remote" @@ -189,4 +189,4 @@ class LoraLoaderCLIPOnly: return (clip_lora,) NODE_CLASS_MAPPINGS = {"SendRemoteCLIP": SendRemoteCLIP, "LoadRemoteCLIP": LoadRemoteCLIP, "LoraLoaderCLIPOnly": LoraLoaderCLIPOnly} -NODE_DISPLAY_NAME_MAPPINGS = {"SendRemoteCLIP": "Send Remote CLIP", "LoadRemoteCLIP": "Load Remote CLIP", "LoraLoaderCLIPOnly": "LoraLoaderCLIPOnly"} \ No newline at end of file +NODE_DISPLAY_NAME_MAPPINGS = {"SendRemoteCLIP": "Send Remote CLIP", "LoadRemoteCLIP": "Load Remote CLIP", "LoraLoaderCLIPOnly": "LoraLoaderCLIPOnly"}