Coder Social home page Coder Social logo

Comments (1)

Gustav74 avatar Gustav74 commented on May 29, 2024

@Nudin, @monstercy

I had the same problem also coming from UFW analysis.

It seem to come from the double quoting of code in line 71
print indent target_node_name " [class=reject, label=\"" target_label "\"]"

must be replaced by:
print indent target_node_name " [class=reject, label='" target_label "']"

so I replaced all \" by '
diff (lines 183,189c183,189 are more fine-tuning):

71c71
< 	print indent name " [class=rule, label='" label "']"
---
> 	print indent name " [class=rule, label=\"" label "\"]"
157c157
< 			print indent target_node_name " [class=reject, label='" target_label "']"
---
> 			print indent target_node_name " [class=reject, label=\"" target_label "\"]"
163c163
< 			print indent target_node_name " [class=target, class='" target_label "', label='" target_label "']"
---
> 			print indent target_node_name " [class=target, class=\"" target_label "\", label=\"" target_label "\"]"
183,189c183,189
< 	print indent "class reject [color = 'red', label='REJECT']"
< 	print indent "class reject_line [color = 'red']"
< 	print indent "class drop [color = 'red', label='DROP']"
< 	print indent "class return [color = '#1ab3ff', label='RETURN']"
< 	print indent "class return_line [color = 'blue']"
< 	print indent "class accept [color = 'lightgreen', label='ACCEPT']"
< 	print indent "class accept_line [color = 'green']"
---
> 	print indent "class reject [color = \"red\", label=\"REJECT\"]"
> 	print indent "class reject_line [color = \"red\"]"
> 	print indent "class drop [color = \"red\", label=\"DROP\"]"
> 	print indent "class return [color = \"#1ab3ff\", label=\"RETURN\"]"
> 	print indent "class return_line [color = \"blue\"]"
> 	print indent "class accept [color = \"lightgreen\", label=\"ACCEPT\"]"
> 	print indent "class accept_line [color = \"green\"]"
199c199
< 			style="shape=ellipse, style=dotted, linecolor='#444', textcolor='#444'"
---
> 			style="shape=ellipse, style=dotted, linecolor=\"#444\", textcolor=\"#444\""

from iptable_vis.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.