Skip to content

Commit 255bb33

Browse files
committed
fix: Removed cyclical imports.
1 parent 8cb9ad9 commit 255bb33

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

pyrdp/layer/tcp.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from pyrdp.logging import LOGGER_NAMES, getSSLLogger
1717
from pyrdp.parser.tcp import TCPParser
1818
from pyrdp.pdu import PDU
19-
from pyrdp.mitm import MITMConfig
2019

2120

2221
TLS_RECORD = 0x16
@@ -46,7 +45,7 @@ class TwistedTCPLayer(IntermediateLayer, Protocol):
4645
TCP observers are notified when a connection is made.
4746
"""
4847

49-
def __init__(self, config: MITMConfig):
48+
def __init__(self, config):
5049
self.log = logging.getLogger(LOGGER_NAMES.PYRDP)
5150
super().__init__(TCPParser())
5251
self.connectedEvent = asyncio.Event()

pyrdp/mitm/layerset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
#
66

77
from pyrdp.enum import SegmentationPDUType
8-
from pyrdp.mitm import MITMConfig
98
from pyrdp.layer import FastPathLayer, LayerChainItem, MCSLayer, SecurityLayer, SegmentationLayer, SlowPathLayer, \
109
TPKTLayer, TwistedTCPLayer, X224Layer
10+
# from pyrdp.mitm.config import MITMConfig
1111

1212

1313
class RDPLayerSet:
1414
"""
1515
Class that handles initialization of regular (non-virtual channel) RDP layers.
1616
"""
1717

18-
def __init__(self, config: MITMConfig):
18+
def __init__(self, config):
1919
self.tcp = TwistedTCPLayer(config)
2020
self.segmentation = SegmentationLayer()
2121
self.tpkt = TPKTLayer()

0 commit comments

Comments
 (0)