|
|
@ -278,9 +278,8 @@ class Engine(): |
|
|
|
# Run the given strategy |
|
|
|
packets = self.strategy.act_on_packet(packet, self.logger, direction="in") |
|
|
|
|
|
|
|
# GFW will send RA packets to disrupt a TCP stream |
|
|
|
# Censors will often send RA packets to disrupt a TCP stream - record this |
|
|
|
if packet.haslayer("TCP") and packet.get("TCP", "flags") == "RA": |
|
|
|
self.logger.debug("Detected GFW censorship - strategy failed.") |
|
|
|
self.censorship_detected = True |
|
|
|
|
|
|
|
# Branching is disabled for the in direction, so we can only ever get |
|
|
|