Island: Modify cc_server type in Agent pydantic model

This commit is contained in:
Shreya Malviya 2022-09-26 17:54:03 +05:30
parent 284ec3d119
commit 6a29702846
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ from typing import Optional
from pydantic import Field
from common.base_models import MutableInfectionMonkeyBaseModel
from common.types import SocketAddress
from . import AgentID, MachineID
@ -26,7 +27,7 @@ class Agent(MutableInfectionMonkeyBaseModel):
parent_id: Optional[AgentID] = Field(allow_mutation=False)
"""The ID of the parent agent that spawned this agent"""
cc_server: str = Field(default="")
cc_server: Optional[SocketAddress]
"""The address that the agent used to communicate with the island"""
log_contents: str = Field(default="")