我的计算机有奇怪的 UDP 流量,但仅在我不使用它时

问题描述

我有一台运行 Ubuntu 20.04 的戴尔 XPS13。在从官方网站安装想象之前,我做了彻底的擦拭。

我之所以知道这个流量,是因为我的大学因为这些 udp 命中而屏蔽了我的计算机。它现在发生了多次,有没有人知道可能导致这种情况的原因?只有在我不实际使用计算机时才会发生(现在 5 或 6 次)。我找不到与这些端口相关的任何服务。

最后一次发生在我离开公寓后 20 分钟。

import 'package:image/image.dart' as Img;

class BlendMode extends StatelessWidget {
  static Future<Uint8List> changeBackgroundOfImage(
      {@required Uint8List bytes,@required List<int> removeColorRGB,@required List<int> addColorRGB}) async {
    Img.Image image = Img.decodeImage(bytes);
    Img.Image newImage = await _customeColor(
        src: image,removeColorRGB: removeColorRGB,addColorRGB: addColorRGB);
    var newPng = Img.encodePng(newImage);
    return newPng;
  }

  static Future<Img.Image> _customeColor(
      {Img.Image src,List<int> removeColorRGB,List<int> addColorRGB}) async {
    var pixels = src.getBytes();
    for (int i = 0,len = pixels.length; i < len; i += 4) {
      if (pixels[i] == removeColorRGB[0] &&
          pixels[i + 1] == removeColorRGB[1] &&
          pixels[i + 2] == removeColorRGB[2]) {
        pixels[i] = addColorRGB[0];
        pixels[i + 1] = addColorRGB[1];
        pixels[i + 2] = addColorRGB[2];
      }
    }

    return src;
  }
  
  convertimage() async {
    ByteData imageData1 = await rootBundle.load("assets/images/Vgv5e.png");
    Uint8List bytes = imageData1.buffer.asUint8List();

    Uint8List newbyte = await AppUtils.changeBackgroundOfImage(
    bytes: bytes,removeColorRGB: [0,0],addColorRGB: [66,245,120]);

    return newbyte;
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        child: FutureBuilder(
            future: convertimage(),builder: (context,snapshot) => Image.memory(snapshot.data)),),);
  }
}

对此可能有一个无害的解释,有人有想法吗?我目前正在使用wireshark记录我的流量,但在它再次发生之前,也许我们可以解开这个谜团。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)